You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/deploy.yml
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,12 @@ defaults:
15
15
run:
16
16
shell: bash
17
17
18
+
concurrency:
19
+
# this ternary operator-like expression gives us the name of the deployment environment (see https://docs.github.com/en/actions/learn-github-actions/expressions#example)
20
+
# and ensures that only one deployment per environment is in progress at a time
# Replace "All" below with "!Ref Env" to set different autoscaling limits per environment.
118
136
MinCapacity:
119
-
!FindInMap [postgreswebEnvScalingConfigurationMap, All, DBMinCapacity]
137
+
!FindInMap [postgresEnvScalingConfigurationMap, All, DBMinCapacity]
120
138
MaxCapacity:
121
-
!FindInMap [postgreswebEnvScalingConfigurationMap, All, DBMaxCapacity]
122
-
postgreswebDBWriterInstance:
139
+
!FindInMap [postgresEnvScalingConfigurationMap, All, DBMaxCapacity]
140
+
141
+
postgresDBWriterInstance:
123
142
Metadata:
124
-
"aws:copilot:description": "The postgresweb Aurora Serverless v2 writer instance"
143
+
"aws:copilot:description": "The postgres Aurora Serverless v2 writer instance"
125
144
Type: "AWS::RDS::DBInstance"
126
145
Properties:
127
-
DBClusterIdentifier: !Ref postgreswebDBCluster
146
+
DBClusterIdentifier: !Ref postgresDBCluster
128
147
DBInstanceClass: db.serverless
129
148
Engine: "aurora-postgresql"
130
149
PromotionTier: 1
@@ -133,16 +152,21 @@ Resources:
133
152
- !GetAZs
134
153
Ref: AWS::Region
135
154
136
-
postgreswebSecretAuroraClusterAttachment:
155
+
postgresSecretAuroraClusterAttachment:
137
156
Type: AWS::SecretsManager::SecretTargetAttachment
138
157
Properties:
139
-
SecretId: !Ref postgreswebAuroraSecret
140
-
TargetId: !Ref postgreswebDBCluster
158
+
SecretId: !Ref postgresAuroraSecret
159
+
TargetId: !Ref postgresDBCluster
141
160
TargetType: AWS::RDS::DBCluster
161
+
142
162
Outputs:
143
-
postgreswebSecret: # injected as POSTGRESWEB_SECRET environment variable by Copilot.
163
+
postgresSecret:
144
164
Description: "The JSON secret that holds the database username and password. Fields are 'host', 'port', 'dbname', 'username', 'password', 'dbClusterIdentifier' and 'engine'"
145
-
Value: !Ref postgreswebAuroraSecret
146
-
postgreswebSecurityGroup:
165
+
Value: !Ref postgresAuroraSecret
166
+
Export:
167
+
Name: !Sub ${App}-${Env}-postgresAuroraSecret
168
+
postgresSecurityGroup:
147
169
Description: "The security group to attach to the workload."
0 commit comments