-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
52 lines (39 loc) · 1.14 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
terraform {
required_version = "1.2.3"
required_providers {
aws = {
source = "hashicorp/aws"
version = "4.20.0"
}
}
}
# Configure the AWS Provider
provider "aws" {
region = var.aws_region
shared_credentials_files = ["~/.aws/credentials"]
profile = "gordonmurray"
default_tags {
tags = {
Repo = "https://github.com/gordonmurray/terraform_aws_atlantis"
}
}
}
module "atlantis" {
source = "./modules/terraform_aws_atlantis"
# Infrastructure related variables
vpc_id = var.vpc_id
subnet_id = var.subnet_id
aws_account_id = var.aws_account_id
my_ip_address = var.my_ip_address
# variables needed for Atlantis / Infracost
my_aws_access_key = var.my_aws_access_key
my_aws_secret_key = var.my_aws_secret_key
github_user = var.github_user
github_token = var.github_token
github_webhook_secret = var.github_webhook_secret
github_allow_list = var.github_allow_list
infracost_api_key = var.infracost_api_key
# domain variables
domain_zone_id = var.domain_zone_id
domain_name = var.domain_name
}