Skip to content

Commit 0da25d2

Browse files
committed
Don't create the default HTTP listener if we're creating the HTTPS
redirect listener on port 80. Fix IAM permissions when deleting a tenant.
1 parent fdf2702 commit 0da25d2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

resources/saas-boost-svc-onboarding.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,7 @@ Resources:
652652
- rds:DescribeDBClusterSnapshots
653653
Resource:
654654
- !Sub arn:aws:rds:${AWS::Region}:${AWS::AccountId}:db:*
655+
- !Sub arn:aws:rds:${AWS::Region}:${AWS::AccountId}:cluster:sb-${Environment}-*tenant*
655656
- !Sub arn:aws:rds:${AWS::Region}:${AWS::AccountId}:cluster-snapshot:*
656657
- Effect: Allow
657658
Action:

resources/tenant-onboarding.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Conditions:
4646
HasHostedZone: !Not [!Equals [!Ref HostedZoneId, '']]
4747
HasSubDomainName: !Not [!Equals [!Ref TenantSubDomain, '']]
4848
HasCertificate: !Not [!Equals [!Ref SSLCertificateArn, '']]
49+
NoCertificate: !Equals [!Ref SSLCertificateArn, '']
4950
CreateSubDomainAlias: !And
5051
- !Condition HasDomainName
5152
- !Condition HasHostedZone
@@ -300,6 +301,7 @@ Resources:
300301
Protocol: HTTP
301302
HttpListener:
302303
Type: AWS::ElasticLoadBalancingV2::Listener
304+
Condition: NoCertificate
303305
Properties:
304306
LoadBalancerArn: !Ref ApplicationLoadBalancer
305307
Port: 80

0 commit comments

Comments
 (0)