Skip to content

Commit

Permalink
Fix resource in IAM policy
Browse files Browse the repository at this point in the history
  • Loading branch information
ha7315 committed Apr 2, 2024
1 parent 63ff6a6 commit b759967
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/create-rds-postgres-tester/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ data "aws_iam_policy_document" "ssm_policy" {
"ssm:GetParameter",
]
resources = [
"arn:aws:ssm:${var.aws_region}:${var.aws_account_id}:parameter/${var.db_name}/sql_script"
aws_ssm_parameter.postgres_create_tester_user_sql.arn
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion modules/create-rds-postgres-tester/ssm.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "aws_ssm_parameter" "postgres-create-tester-user-sql" {
resource "aws_ssm_parameter" "postgres_create_tester_user_sql" {
name = "${var.db_name}-postgres-create-tester-user-sql"
description = "SQL script to conditionally create the 'tester' user in the Postgres database"
type = "String"
Expand Down

0 comments on commit b759967

Please sign in to comment.