Skip to content

Commit

Permalink
feat: DBTP-1380 Get Opensearch/Redis versions from AWS API - Permissi…
Browse files Browse the repository at this point in the history
…ons on env pipeline (#275)
  • Loading branch information
DeveloperConnor authored Nov 15, 2024
1 parent 9c98250 commit aca4cc4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions environment-pipelines/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,17 @@ data "aws_iam_policy_document" "redis" {
"arn:aws:elasticache:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:cluster:*"
]
}

statement {
actions = [
"elasticache:DescribeCacheEngineVersions"
]
effect = "Allow"
resources = [
"*"
]
sid = "AllowRedisListVersions"
}
}

resource "aws_iam_policy" "redis" {
Expand Down Expand Up @@ -767,6 +778,17 @@ data "aws_iam_policy_document" "opensearch" {
"arn:aws:es:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:domain/*"
]
}

statement {
actions = [
"es:ListVersions"
]
effect = "Allow"
resources = [
"*"
]
sid = "AllowOpensearchListVersions"
}
}

resource "aws_iam_policy" "opensearch" {
Expand Down

0 comments on commit aca4cc4

Please sign in to comment.