Skip to content

Commit

Permalink
Merge pull request #792 from PRX/fix/large_redis_nodes
Browse files Browse the repository at this point in the history
Use cache.m6g.large everywhere
  • Loading branch information
cavis authored Dec 4, 2024
2 parents eb670b6 + 9e846e6 commit 340ce6b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion spire/templates/root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,6 @@ Resources:
RootStackId: !Ref AWS::StackId
EnvironmentType: !Ref EnvironmentType
EnvironmentTypeAbbreviation: !Ref EnvironmentTypeAbbreviation
RegionMode: !FindInMap [RegionModeMap, !Ref "AWS::Region", !Ref EnvironmentType]
NestedChangeSetScrubbingResourcesState: !Ref NestedChangeSetScrubbingResourcesState
VpcPrivateSubnet1Id: !GetAtt SharedVpcStack.Outputs.PrivateSubnet1Id
VpcPrivateSubnet2Id: !GetAtt SharedVpcStack.Outputs.PrivateSubnet2Id
Expand Down
4 changes: 1 addition & 3 deletions spire/templates/shared-redis/cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Parameters:
RootStackId: { Type: String }
EnvironmentType: { Type: String }
EnvironmentTypeAbbreviation: { Type: String }
RegionMode: { Type: String }
NestedChangeSetScrubbingResourcesState: { Type: String }
VpcPrivateSubnet1Id: { Type: AWS::EC2::Subnet::Id }
VpcPrivateSubnet2Id: { Type: AWS::EC2::Subnet::Id }
Expand All @@ -20,7 +19,6 @@ Parameters:

Conditions:
IsProduction: !Equals [!Ref EnvironmentType, Production]
IsPrimaryRegion: !Equals [!Ref RegionMode, Primary]
EnableNestedChangeSetScrubbingResources: !Equals [!Ref NestedChangeSetScrubbingResourcesState, Enabled]

Resources:
Expand Down Expand Up @@ -51,7 +49,7 @@ Resources:
AtRestEncryptionEnabled: false
AutomaticFailoverEnabled: true
AutoMinorVersionUpgrade: false
CacheNodeType: !If [IsProduction, !If [IsPrimaryRegion, cache.m6g.large, cache.t4g.medium], cache.t4g.small]
CacheNodeType: !If [IsProduction, cache.m6g.large, cache.t4g.small]
CacheParameterGroupName: default.redis7.cluster.on
CacheSubnetGroupName: !Ref RedisSubnetGroup
Engine: Redis
Expand Down

0 comments on commit 340ce6b

Please sign in to comment.