-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tf
40 lines (33 loc) · 856 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
}
}
# Main region where the resources should be created in
# Should be close to the location of your viewers
provider "aws" {
region = "us-west-2"
}
# Provider used for creating the Lambda@Edge function which must be deployed
# to us-east-1 region (Should not be changed)
provider "aws" {
alias = "global_region"
region = "us-east-1"
}
module "tf_next" {
source = "milliHQ/next-js/aws"
version = "1.0.0-canary.5"
deployment_name = "tf-next-delta"
providers = {
aws.global_region = aws.global_region
}
# Uncomment when using in the cloned monorepo for tf-next development
# source = "../.."
# debug_use_local_packages = true
}
output "cloudfront_domain_name" {
value = module.tf_next.cloudfront_domain_name
}