Skip to content

Commit

Permalink
Merge pull request #31 from ministryofjustice/update-elasticache-access
Browse files Browse the repository at this point in the history
update elasticache access for users
  • Loading branch information
timckt authored Feb 15, 2024
2 parents 6e97438 + 78b4747 commit e16cb6d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ No modules.
| [aws_iam_policy_document.cloudwatch_for_github](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
| [aws_iam_policy_document.cognito_idp_for_github](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
| [aws_iam_policy_document.combined](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
| [aws_iam_policy_document.elasticache_for_github](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
| [aws_iam_policy_document.federated_role_trust_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
| [aws_iam_policy_document.iam_for_github](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
| [aws_iam_policy_document.kms_for_github](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
Expand Down
1 change: 1 addition & 0 deletions aws.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ data "aws_iam_policy_document" "combined" {
data.aws_iam_policy_document.sqs_for_github.json,
data.aws_iam_policy_document.vpc_for_github.json,
data.aws_iam_policy_document.secretsmanager_for_github.json,
data.aws_iam_policy_document.elasticache_for_github.json,
]
}

Expand Down
11 changes: 11 additions & 0 deletions elasticache.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
data "aws_iam_policy_document" "elasticache_for_github" {
statement {
sid = "AllowElastiCacheListDescribe"
effect = "Allow"
actions = [
"elasticache:Describe*",
"elasticache:List*",
]
resources = ["*"]
}
}

0 comments on commit e16cb6d

Please sign in to comment.