-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update RDS instance connection retrieval and output in example…
…-rds-instance.tf
- Loading branch information
1 parent
3cb6393
commit 9ffed51
Showing
19 changed files
with
543 additions
and
116 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
- name: Render terraform docs inside modules | ||
uses: terraform-docs/[email protected] | ||
with: | ||
working-dir: modules/amplify-app,modules/bastion,modules/mongodb,modules/rds,modules/rds-aurora,modules/vpc,live/terraform-backend,live/common-infra | ||
working-dir: modules/amplify-app,modules/bastion,modules/mongodb,modules/rds,modules/rds-aurora,modules/vpc,live/terraform-backend,live/core-networking,live/common-infra,live/terraform-backend | ||
output-file: docs/MODULE.md | ||
output-method: replace | ||
git-push: "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
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
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,44 +1,16 @@ | ||
variable "vpc_cidr_block" { | ||
description = "CIDR block for the VPC" | ||
variable "core_networking_ssm_parameter_prefix" { | ||
description = "The SSM parameter prefix for core networking parameters" | ||
type = string | ||
default = "10.0.0.0/16" | ||
} | ||
|
||
module "vpc" { | ||
source = "../../modules/vpc" | ||
name = module.label.id | ||
vpc_cidr_block = var.vpc_cidr_block | ||
tags = module.label.tags | ||
enable_nat_gateway = true | ||
single_nat_gateway = true | ||
data "aws_ssm_parameter" "vpc_id" { | ||
name = "${var.core_networking_ssm_parameter_prefix}/vpc_id" | ||
} | ||
|
||
output "ssm_parameter_vpc_id" { | ||
description = "name of the ssm parameter for the vpc id" | ||
value = module.vpc.ssm_parameter_vpc_id | ||
data "aws_ssm_parameter" "app_subnets" { | ||
name = "${var.core_networking_ssm_parameter_prefix}/app_subnets" | ||
} | ||
|
||
output "ssm_parameter_public_subnets" { | ||
description = "name of the ssm parameter for the public subnets" | ||
value = module.vpc.ssm_parameter_public_subnets | ||
} | ||
|
||
output "ssm_parameter_private_subnets" { | ||
description = "name of the ssm parameter for the private subnets" | ||
value = module.vpc.ssm_parameter_private_subnets | ||
} | ||
|
||
output "ssm_parameter_database_subnets" { | ||
description = "name of the ssm parameter for the database subnets" | ||
value = module.vpc.ssm_parameter_database_subnets | ||
} | ||
|
||
output "ssm_parameter_app_subnets" { | ||
description = "name of the ssm parameter for the app subnets" | ||
value = module.vpc.ssm_parameter_app_subnets | ||
} | ||
|
||
output "ssm_parameter_app_security_group" { | ||
description = "name of the ssm parameter for the app security group" | ||
value = module.vpc.ssm_parameter_app_security_group | ||
data "aws_ssm_parameter" "database_subnets" { | ||
name = "${var.core_networking_ssm_parameter_prefix}/database_subnets" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.