Skip to content

Commit

Permalink
Merge pull request #466 from cisagov/cd_elasticache_add_create_policy
Browse files Browse the repository at this point in the history
Update elasticache terraform to change name of elasticache
  • Loading branch information
cduhn17 authored Jul 22, 2024
2 parents ce116cf + f12a0a5 commit d7362a5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions infrastructure/elasticache.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resource "aws_security_group" "elasticache_security_group" {
}

resource "aws_elasticache_subnet_group" "crossfeed_vpc" {
name = "aws_vpc.crossfeed_vpc"
name = "crossfeed-vpc-subnet-group"
subnet_ids = [aws_subnet.backend.id]

tags = {
Expand Down Expand Up @@ -51,8 +51,11 @@ resource "aws_iam_policy" "elasticache_policy" {
"elasticache:DeleteCacheSubnetGroup",
"elasticache:DescribeCacheSubnetGroups",
"elasticache:ModifyCacheSubnetGroup",
"elasticache:AddTagsToResource",
"iam:CreatePolicy",
"iam:AttachUserPolicy"
"iam:AttachUserPolicy",
"iam:GetPolicyVersion",
"iam:ListPolicyVersions"
]
Resource = "*"
}
Expand Down

0 comments on commit d7362a5

Please sign in to comment.