Skip to content

Commit

Permalink
Renames
Browse files Browse the repository at this point in the history
  • Loading branch information
ha7315 committed Apr 5, 2024
1 parent c7f1deb commit ababa54
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions modules/create-rds-postgres-tester/iam.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
data "aws_iam_policy_document" "ssm_policy" {
data "aws_iam_policy_document" "ssm_get" {
version = "2012-10-17"

statement {
Expand All @@ -13,15 +13,15 @@ data "aws_iam_policy_document" "ssm_policy" {
}
}

resource "aws_iam_policy" "ssm_policy" {
name = "SSMParameterReadPolicy"
description = "Allows reading the value from the SSM parameter"
policy = data.aws_iam_policy_document.ssm_policy.json
resource "aws_iam_policy" "ssm_get" {
name = "CreateRDSPostgresTesterSSMParameterGet"
description = "Allows getting the value from the specified SSM parameters"
policy = data.aws_iam_policy_document.ssm_get.json
}

resource "aws_iam_role_policy_attachment" "ecs_task__ssm_policy" {
resource "aws_iam_role_policy_attachment" "ecs_task__ssm_get" {
role = module.create_tester_user.task_role_name
policy_arn = aws_iam_policy.ssm_policy.arn
policy_arn = aws_iam_policy.ssm_get.arn
}

# IAM resources for the Step Function
Expand Down Expand Up @@ -64,7 +64,7 @@ data "aws_iam_policy_document" "sfn_create_tester_user" {


statement {
sid = "AllowRunMigratorTasks"
sid = "AllowRunTasks"

effect = "Allow"

Expand All @@ -78,7 +78,7 @@ data "aws_iam_policy_document" "sfn_create_tester_user" {
}

statement {
sid = "AllowStopMigratorTasks"
sid = "AllowStopTasks"

effect = "Allow"

Expand Down

0 comments on commit ababa54

Please sign in to comment.