diff --git a/infrastructure/elasticache.tf b/infrastructure/elasticache.tf index 046a093b..5828d2e9 100644 --- a/infrastructure/elasticache.tf +++ b/infrastructure/elasticache.tf @@ -6,7 +6,7 @@ resource "aws_security_group" "elasticache_security_group" { from_port = 6379 to_port = 6379 protocol = "tcp" - cidr_blocks = ["10.0.0.0/16"] // Restrict to a specific CIDR block, ideally your VPC's CIDR + cidr_blocks = ["172.31.0.0/16"] // Restrict to a specific CIDR block, ideally your VPC's CIDR } } @@ -75,6 +75,7 @@ resource "aws_iam_policy" "elasticache_policy" { "elasticache:ModifyCacheParameterGroup", "iam:ListAttachedUserPolicies", "iam:CreatePolicy", + "iam:CreatePolicyVersion", "iam:AttachUserPolicy", "iam:GetPolicyVersion", "iam:ListPolicyVersions",