Skip to content

Commit 6a5aa97

Browse files
Merge pull request #2 from balena-io/ab77/loki-distributed
patches: Linter fixes, etc.
2 parents 48a72fd + fb4c30e commit 6a5aa97

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

state/rds-aurora-serverless-v2-postgres.yaml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ Metadata:
4444
- EnableDataApi
4545
- EngineVersion
4646
- PerformanceInsightsRetentionPeriod
47-
- PreferredBackupWindow
48-
- PreferredMaintenanceWindow
47+
# TODO re-enable as soon as CloudFormation bug ix fixed
48+
#- PreferredBackupWindow
49+
#- PreferredMaintenanceWindow
4950
- SubDomainNameWithDot
5051
- Label:
5152
default: 'Serverless Parameters'
@@ -123,14 +124,15 @@ Parameters:
123124
Description: 'Name that is used to create the DNS entry with trailing dot, e.g. §{SubDomainNameWithDot}§{HostedZoneName}. Leave blank for naked (or apex and bare) domain. Requires ParentZoneStack parameter!'
124125
Type: String
125126
Default: 'aurora.'
126-
PreferredBackupWindow:
127-
Description: 'IGNORED BECAUSE OF A BUG IN CLOUDFORMATION! VALUE WILL APPLY IN THE FUTURE! The daily time range in UTC during which you want to create automated backups.' # TODO remove uppercase warning
128-
Type: String
129-
Default: '09:54-10:24'
130-
PreferredMaintenanceWindow:
131-
Description: 'IGNORED BECAUSE OF A BUG IN CLOUDFORMATION! VALUE WILL APPLY IN THE FUTURE! The weekly time range (in UTC) during which system maintenance can occur.' # TODO remove uppercase warning
132-
Type: String
133-
Default: 'sat:07:00-sat:07:30'
127+
# TODO re-enable as soon as CloudFormation bug ix fixed
128+
#PreferredBackupWindow:
129+
# Description: 'IGNORED BECAUSE OF A BUG IN CLOUDFORMATION! VALUE WILL APPLY IN THE FUTURE! The daily time range in UTC during which you want to create automated backups.' # TODO remove uppercase warning
130+
# Type: String
131+
# Default: '09:54-10:24'
132+
#PreferredMaintenanceWindow:
133+
# Description: 'IGNORED BECAUSE OF A BUG IN CLOUDFORMATION! VALUE WILL APPLY IN THE FUTURE! The weekly time range (in UTC) during which system maintenance can occur.' # TODO remove uppercase warning
134+
# Type: String
135+
# Default: 'sat:07:00-sat:07:30'
134136
EnableDataApi:
135137
Description: 'Enable the Data API (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html).'
136138
Type: String
@@ -294,7 +296,7 @@ Resources:
294296
- !If
295297
- HasSecret
296298
- !Join ['', ['{{resolve:secretsmanager:', {'Fn::ImportValue': !Sub '${ParentSecretStack}-SecretArn'}, ':SecretString:password}}']]
297-
- !Ref DBMasterUserPassword
299+
- !Sub "${DBMasterUserPassword}"
298300
# PreferredBackupWindow: !Ref PreferredBackupWindow TODO re-enable as soon as CloudFormation bug ix fixed
299301
# PreferredMaintenanceWindow: !Ref PreferredMaintenanceWindow TODO re-enable as soon as CloudFormation bug ix fixed
300302
ServerlessV2ScalingConfiguration:

static-website/static-website.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,12 @@ Resources:
272272
S3OriginConfig:
273273
OriginAccessIdentity: !Sub 'origin-access-identity/cloudfront/${CloudFrontOriginAccessIdentity}'
274274
PriceClass: 'PriceClass_All'
275-
ViewerCertificate:
276-
AcmCertificateArn: !If [HasCreateAcmCertificate, !Ref Certificate, !If [HasAcmCertificateArn, !Ref ExistingCertificate, !Ref 'AWS::NoValue']]
277-
IamCertificateId: !If [HasIamCertificateId, !Ref ExistingCertificate, !Ref 'AWS::NoValue']
275+
ViewerCertificate: !If
276+
- HasIamCertificateId # Check if IamCertificateId is chosen
277+
- IamCertificateId: !Ref ExistingCertificate
278+
MinimumProtocolVersion: 'TLSv1.2_2019'
279+
SslSupportMethod: 'sni-only'
280+
- AcmCertificateArn: !If [HasAcmCertificateArn, !Ref ExistingCertificate, !Ref Certificate]
278281
MinimumProtocolVersion: 'TLSv1.2_2019'
279282
SslSupportMethod: 'sni-only'
280283
WebACLId: !If

0 commit comments

Comments
 (0)