Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try burst instances in non-primary production #751

Merged
merged 1 commit into from Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions spire/templates/root.yml
Expand Up @@ -549,6 +549,7 @@ 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: 3 additions & 1 deletion spire/templates/shared-redis/cluster.yml
Expand Up @@ -11,6 +11,7 @@ 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,6 +21,7 @@ Parameters:

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

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