Skip to content

Commit

Permalink
fix provider and resource reference
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpearce-digital committed Jan 25, 2024
1 parent fa92d51 commit 851976e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ data "aws_iam_policy_document" "assume_replication_role" {

actions = ["sts:AssumeRole"]
}
provider = aws.global
provider = aws.region
}

resource "aws_iam_role" "replication" {
name = "${data.aws_default_tags.current.tags.environment-name}-reduced-fees-uploads-replication"
assume_role_policy = data.aws_iam_policy_document.assume_replication_role.json
provider = aws.global
provider = aws.region
}


Expand Down Expand Up @@ -191,7 +191,7 @@ resource "aws_ssm_parameter" "s3_batch_configuration" {
"aws_account_id" : data.aws_caller_identity.current.account_id,
"report_and_manifests_bucket" : "arn:aws:s3:::batch-manifests-${data.aws_default_tags.current.tags.application}-${data.aws_default_tags.current.tags.account-name}-${data.aws_region.current.name}",
"source_bucket" : aws_s3_bucket.bucket.arn,
"role_arn" : data.aws_iam_role.replication.arn,
"role_arn" : aws_iam_role.replication.arn,
"aws_region" : data.aws_region.current.name,
})
provider = aws.region
Expand Down

0 comments on commit 851976e

Please sign in to comment.