Skip to content

Commit

Permalink
Fixup region mode
Browse files Browse the repository at this point in the history
  • Loading branch information
cavis committed Sep 19, 2023
1 parent 9cc9d28 commit d74d23d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion spire/templates/apps-300A.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ Resources:
EnvironmentType: !Ref EnvironmentType
EnvironmentTypeAbbreviation: !Ref EnvironmentTypeAbbreviation
EnvironmentTypeLowercase: !Ref EnvironmentTypeLowercase
RegionMode: !Ref RegionMode
RootStackName: !Ref RootStackName
RootStackId: !Ref RootStackId
EchoServiceToken: !Ref EchoServiceToken
Expand Down
2 changes: 0 additions & 2 deletions spire/templates/apps/augury.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Parameters:
EnvironmentType: { Type: String }
EnvironmentTypeAbbreviation: { Type: String }
EnvironmentTypeLowercase: { Type: String }
RegionMode: { Type: String }
RootStackName: { Type: String }
RootStackId: { Type: String }
EchoServiceToken: { Type: String }
Expand Down Expand Up @@ -64,7 +63,6 @@ Parameters:

Conditions:
IsProduction: !Equals [!Ref EnvironmentType, Production]
IsPrimaryRegion: !Equals [!Ref RegionMode, Primary]
HasAuroraEndpoint: !Not [!Equals [!Ref SharedAuroraPostgresqlEndpoint, ""]]
EnableWorkers: !And [!Condition HasAuroraEndpoint, !Condition IsPrimaryRegion]

Expand Down
1 change: 1 addition & 0 deletions spire/templates/root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ Resources:
Properties:
Parameters:
EnvironmentType: !Ref EnvironmentType
RegionMode: !FindInMap [RegionModeMap, !Ref "AWS::Region", !Ref EnvironmentType]
RootStackId: !Ref AWS::StackId
RootStackName: !Ref AWS::StackName
SourceSecurityGroupId1: !GetAtt SharedEcsAsgSecurityGroupStack.Outputs.InstanceSecurityGroupId
Expand Down
10 changes: 6 additions & 4 deletions spire/templates/shared-app-redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,23 @@ Description: >-
Parameters:
EnvironmentType: { Type: String }
RegionMode: { Type: String }
RootStackName: { Type: String }
RootStackId: { Type: String }
SourceSecurityGroupId1: { Type: AWS::EC2::SecurityGroup::Id }
VpcId: { Type: AWS::EC2::VPC::Id }
VpcPrivateSubnet1Id: { Type: AWS::EC2::Subnet::Id }
VpcPrivateSubnet2Id: { Type: AWS::EC2::Subnet::Id }
VpcPrivateSubnet3Id: { Type: AWS::EC2::Subnet::Id }
StagingInstanceType:
Type: String
Default: cache.t4g.micro
ProductionInstanceType:
Type: String
Default: cache.t4g.small
VpcId: { Type: AWS::EC2::VPC::Id }
VpcPrivateSubnet1Id: { Type: AWS::EC2::Subnet::Id }
VpcPrivateSubnet2Id: { Type: AWS::EC2::Subnet::Id }
VpcPrivateSubnet3Id: { Type: AWS::EC2::Subnet::Id }

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

Resources:
Expand Down

0 comments on commit d74d23d

Please sign in to comment.