-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.tf
43 lines (36 loc) · 950 Bytes
/
data.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
// IMPORT ACCOUNT DATA
data "terraform_remote_state" "account" {
backend = "s3"
config {
bucket = "${var.aws_account}-terraform-state"
key = "aws/terraform.tfstate"
region = "us-east-1"
}
}
// IMPORT VPC DATA
data "terraform_remote_state" "vpc" {
backend = "s3"
config {
bucket = "${var.aws_account}-terraform-state"
key = "aws/${var.aws_region}/${var.vpc_name}/terraform.tfstate"
region = "us-east-1"
}
}
// IMPORT VPC DATA
data "terraform_remote_state" "ops_vpc" {
backend = "s3"
config {
bucket = "${var.aws_account}-terraform-state"
key = "aws/${var.aws_region}/ops-vpc/terraform.tfstate"
region = "us-east-1"
}
}
// IMPORT REGISTRY
data "terraform_remote_state" "registry" {
backend = "s3"
config {
bucket = "${var.aws_account}-terraform-state"
key = "aws/${var.aws_region}/${var.vpc_name}/ops/docker-registry/terraform.tfstate"
region = "us-east-1"
}
}