-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf.example
42 lines (38 loc) · 1.02 KB
/
main.tf.example
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
41
42
# Probably the most useful variable, enter
# the domain where you want your website hosted
variable "domain_website" {
default = ""
}
# Visit https://console.aws.amazon.com/route53/home#hosted-zones:
# and look at the "Hosted Zone ID" column
variable "route53_zone_id" {
default = ""
}
# A number of entities are global and some are tied to us-east-1
# but this allows you to choose to place your S3 buckets in a
# region of your choosing
variable "aws_region" {
default = ""
}
# Your providers allow access to AWS and also
# define the region in use. For security it is
# best not to put your access key or secret key
# in here; instead set up awscli and configure
# them with your environment
provider "aws" {
region = var.aws_region
}
provider "aws" {
alias = "us-east-1"
region = "us-east-1"
}
module "secure-static" {
source = "M1ke/secure-static/aws"
version = "0.6.0"
domain_website = var.domain_website
route53_zone_id = var.route53_zone_id
providers = {
aws.main = aws
aws.us-east-1 = aws.us-east-1
}
}