An opinionated Terraform module to provision AWS resources for Gatsby using S3, CloudFront, and Route53.
A project by Elastic Byte. Built with ❤️ in 🎸 Nashville.
- An AWS account
- A domain added to Route53 in AWS
- A SSL certificate provisioned in AWS ACM for the domain you wish to run Gatsby on. Note, the ACM certificate must be in the
us-east-1
region for CloudFront. - Terraform version
0.12.20
or greater
module "my_gatsby" {
source = "github.com/elasticbyte/terraform-gatsby-aws"
route53_zone_id = "XXXXXXXXXXXXXX"
domain_name = "gatsby.example.com"
https_certificate_arn = "arn:aws:acm:us-east-1:XXXXXXXXXXXX:certificate/1b2aca23-1e57-97ac-a8268-ab44a90178de7" // must be in us-east-1 region
}
Create issues here in GitHub (https://github.com/elasticbyte/terraform-gatsby-aws/issues).
Copyright 2020 Elastic Byte
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.