Skip to content

Commit

Permalink
- vpc-interface-endpoint
Browse files Browse the repository at this point in the history
  - add lab-gov-network-nonprod to allow to create dns zones
  • Loading branch information
badra001 committed Sep 28, 2023
1 parent b51e126 commit 0d564d1
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,3 +345,7 @@
* 2.9.7 -- 2023-09-28
- route53-zone-association/terraform-role
- add `sso_permissionset_names` for use of assume role by SSO roles

* 2.9.8 -- 2023-09-28
- vpc-interface-endpoint
- add lab-gov-network-nonprod to allow to create dns zones
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
_module_version = "2.9.7"
_module_version = "2.9.8"
_module_names = {
"_main_" = "aws-vpc-setup"

Expand Down
8 changes: 0 additions & 8 deletions vpc-interface-endpoint/route53.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,7 @@
# https://docs.aws.amazon.com/whitepapers/latest/building-scalable-secure-multi-vpc-network-infrastructure/centralized-access-to-vpc-private-endpoints.html
#

# allow only network-prod, network-sa accounts to run this

locals {
permitted_accounts = [
# ent-gov-network-prod
"057405694017",
# ent-gov-network-sa
"057445207498",
]
endpoint_exists = fileexists(format("%v/setup/.vpce.%v", path.root, data.aws_vpc_endpoint_service.interface_endpoint.service))
service_domain_parts = split(".", data.aws_vpc_endpoint_service.interface_endpoint.private_dns_name)
is_wildcard = local.service_domain_parts[0] == "*"
Expand Down
12 changes: 12 additions & 0 deletions vpc-interface-endpoint/route53_permitted_accounts.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# allow only network-centric accounts to run this

locals {
permitted_accounts = [
# ent-gov-network-prod
"057405694017",
# ent-gov-network-sa
"057445207498",
# lab-gov-network-nonprod
"269244441389",
]
}

0 comments on commit 0d564d1

Please sign in to comment.