-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathprovider.tf
55 lines (49 loc) · 1.08 KB
/
provider.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
53
54
55
terraform {
required_version = ">= v1.3.9"
# Set minimum required versions for providers using lazy matching
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.56.0"
}
}
# Configure the S3 backend
backend "s3" {
encrypt = true
region = "us-east-1"
bucket = "aws-tf-nw-shared-svc-dev-terraform-state-bucket"
dynamodb_table = "aws-tf-nw-shared-svc-dev-terraform-state-locktable"
key = "bootstrap/terraform.tfstate"
}
}
# Configure the AWS Provider to assume_role and set default region
#tooling account
provider "aws" {
region = var.region
profile = "tooling-admin"
alias = "tooling"
}
#network account
provider "aws" {
region = var.region
profile = "nw-admin"
alias = "network"
}
#dev account
provider "aws" {
region = var.region
profile = "dev-admin"
alias = "dev"
}
#test account
provider "aws" {
region = var.region
profile = "test-admin"
alias = "test"
}
#sec account
provider "aws" {
region = var.region
profile = "sec-admin"
alias = "sec"
}