From 12a366968dc18cfba981668594949630be5d98f9 Mon Sep 17 00:00:00 2001 From: cduhn17 Date: Tue, 23 Jul 2024 08:19:21 -0500 Subject: [PATCH] Update elasticache terraform to modify VPC cidr notation --- infrastructure/elasticache.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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",