Last active
January 4, 2021 16:08
-
-
Save ofhouse/44232a180c74adab16bf662401c7e0c6 to your computer and use it in GitHub Desktop.
Initial Terraform template for Next.js module for AWS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# main.tf | |
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> 3.0" | |
} | |
} | |
} | |
# Main region where the resources should be created in | |
provider "aws" { | |
region = "us-east-1" | |
} | |
module "tf_next" { | |
source = "dealmore/next-js/aws" | |
} | |
output "cloudfront_domain_name" { | |
value = module.tf_next.cloudfront_domain_name | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment