-
Notifications
You must be signed in to change notification settings - Fork 2
/
data.tf
39 lines (32 loc) · 929 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
data "aws_vpc_peering_connection" "ad_peering_with_ops" {
provider = aws.ENV_ACCT
vpc_id = module.ops.opsvpc_id
owner_id = data.aws_caller_identity.apps.account_id
peer_vpc_id = module.ad.vpc_id
peer_owner_id = data.aws_caller_identity.apps.account_id
}
data "aws_vpc_peering_connection" "ad_peering" {
provider = aws.ENV_ACCT
vpc_id = module.apps.appsvpc_id
owner_id = data.aws_caller_identity.apps.account_id
peer_vpc_id = module.ad.vpc_id
peer_owner_id = data.aws_caller_identity.apps.account_id
}
data "aws_vpc_peering_connection" "ops_to_acpvpn" {
provider = aws.ENV_ACCT
tags = {
Name = "ops-to-vpn"
}
}
data "aws_vpc_peering_connection" "peering_to_acp" {
provider = aws.ENV_ACCT
tags = {
Name = "peering-to-acp"
}
}
data "aws_caller_identity" "apps" {
provider = aws.ENV_ACCT
}
data "aws_caller_identity" "ci" {
provider = aws.CI
}