Skip to content

Instantly share code, notes, and snippets.

@ofhouse
Last active January 4, 2021 16:08
Show Gist options
  • Save ofhouse/44232a180c74adab16bf662401c7e0c6 to your computer and use it in GitHub Desktop.
Save ofhouse/44232a180c74adab16bf662401c7e0c6 to your computer and use it in GitHub Desktop.
Initial Terraform template for Next.js module for AWS
# 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