-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tf
50 lines (41 loc) · 1.18 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
terraform {
required_version = "~> 1.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.47"
}
}
backend "s3" {
bucket = "clowd-haus-iac-us-east-1"
key = "api-gateway-ecs-razzle-dazzle/us-east-1/terraform.tfstate"
region = "us-east-1"
dynamodb_table = "clowd-haus-terraform-state"
encrypt = true
}
}
provider "aws" {
region = local.region
# assume_role {
# role_arn = "<TODO>"
# session_name = local.name
# }
}
################################################################################
# Common Locals
################################################################################
locals {
name = "api-gateway-ecs-razzle-dazzle"
region = "us-east-1"
environment = "nonprod"
}
################################################################################
# Common Modules
################################################################################
module "tags" {
source = "clowdhaus/tags/aws"
version = "~> 1.0"
application = local.name
environment = local.environment
repository = "https://github.com/clowdhaus/${local.name}"
}