-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add boc:vpc:subnet_label - route53-zone-association/lambda-role - add ssm permissions - route53-zone-association/terraform-role - add ssm permissions - vpc-interface-endpoint - add additional information to ssm parameter - cleanup zone creation based on endpoint service definition (some are missing a zone)
- Loading branch information
Showing
9 changed files
with
102 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| locals { | ||
| _module_version = "2.8.1" | ||
| _module_version = "2.8.2" | ||
| _module_names = { | ||
| "_main_" = "aws-vpc-setup" | ||
|
|
||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
|
|
||
| ```script | ||
| cd REPO | ||
| mkdir vpc/REGION/shared-setup | ||
| # from tf-upgrade branch below | ||
| cp REPOPATH/terraform/terraform-modules/aws-vpc-setup/examples/region-shared-setup/* ./ | ||
| ``` | ||
|
|
||
| This sets up all the tags for the VPC resources shared TO this account and region. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| provider "aws" { | ||
| alias = "org_master" | ||
| region = var.org_master_region | ||
| profile = var.org_master_profile | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| module "share_networks" { | ||
| source = "git@github.e.it.census.gov:terraform-modules/aws-vpc-setup.git//share-resources?ref=tf-upgrade" | ||
| providers = { | ||
| aws = aws | ||
| aws.org_master = aws.org_master | ||
| } | ||
| org_master_profile = "252903981224-ma5-gov" | ||
| org_master_region = "us-gov-west-1" | ||
| share_enabled = true | ||
| share_account_list = [for a in var.share_account_list : a.account_id if a.enabled] | ||
| share_organizational_unit_list = [for ou in var.share_organizational_unit_list : ou.id if ou.enabled] | ||
| private_subnets_ids = module.subnets.private_subnets_ids | ||
| } | ||
|
|
||
| # need these files | ||
| # credentials.org_master.tf | ||
| # share.tf | ||
| # variables.org_master.tf | ||
| # variables.share.auto.tfvars | ||
| # variables.share.tf | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| variable "org_master_profile" { | ||
| description = "AWS Organization Master account profile" | ||
| type = string | ||
| default = "252903981224-ma5-gov" | ||
| } | ||
|
|
||
| variable "org_master_region" { | ||
| description = "AWS Organization Master region (see docs: https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html)" | ||
| type = string | ||
| default = "us-gov-west-1" | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| share_organizational_unit_list = [ | ||
| { | ||
| label = "Enterprise-GOV:ProgramWorkloads:EDL:Production" | ||
| id = "ou-9go7-u6hpspj7" | ||
| enabled = false | ||
| } | ||
| ] | ||
|
|
||
| share_account_list = [ | ||
| { | ||
| alias = "cedsci-dev-gov" | ||
| account_id = "145577987146" | ||
| enabled = true | ||
| } | ||
| ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| variable "share_organizational_unit_list" { | ||
| description = "List of organizaiton unit objects (label (ou name), id, enabled) to which to share resources" | ||
| type = list(object({ | ||
| label = string | ||
| id = string, | ||
| enabled = optional(bool, true) | ||
| })) | ||
| default = [] | ||
| } | ||
|
|
||
| variable "share_account_list" { | ||
| description = "List of account objects (alias, account_id, enabled) to which to share resoures" | ||
| type = list(object({ | ||
| alias = string, | ||
| account_id = string, | ||
| enabled = optional(bool, true) | ||
| })) | ||
| default = [] | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters