Skip to content

Commit

Permalink
Fix variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ha7315 committed Mar 27, 2024
1 parent a0549e8 commit 651746d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module "create_tester_user_task" {
]
port = null
secret_environment_variables = [
{ "name" : "DB_CONNECTION_URL", "valueFrom" : var.target_db_connection_url_ssm_param_arn }
{ "name" : "DB_CONNECTION_URL", "valueFrom" : var.db_connection_url_ssm_param_arn }
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion modules/create-rds-postgres-tester/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resource "aws_sfn_state_machine" "create-tester-user" {
"Environment": [
{
"Name": "DB_CONNECTION_URL",
"Value": "${var.target_db_connection_url_ssm_param_arn}"
"Value": "${var.db_connection_url_ssm_param_arn}"
}
]
}
Expand Down
10 changes: 5 additions & 5 deletions modules/create-rds-postgres-tester/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ variable "db_clients_security_group_id" {
description = "ID of the security group that allows access to the RDS instance"
}

variable "db_connection_url_ssm_param_arn" {
type = string
description = "ARN of SSM param which contains the connection URL for the Postgres database"
}

variable "db_name" {
type = string
description = "Database name"
Expand Down Expand Up @@ -73,11 +78,6 @@ variable "subnet_id" {
description = "ID of the subnet in which to run the extract/load ECS tasks and also in which to present the EFS mount point"
}

variable "target_db_connection_url_ssm_param_arn" {
type = string
description = "ARN of SSM param which contains the connection URL for the target Postgres database"
}

variable "vpc_id" {
type = string
description = "ID of the VPC into which to deploy the resources"
Expand Down

0 comments on commit 651746d

Please sign in to comment.