Skip to content

Commit e8e9f65

Browse files
committed
fix: minor policy updates for nested stacks
1 parent 4872084 commit e8e9f65

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

Unicorn.Contracts/template.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ Metadata:
1212
config:
1313
ignore_checks:
1414
- ES4000 # Rule disabled because the CatchAll Rule doesn't need a DLQ
15-
- ES6000 # Rule disabled because SQS DLOs don't need a RedrivePolicy
15+
- ES6000 # Rule disabled because SQS DLQs don't need a RedrivePolicy
1616
- WS2001 # Rule disabled because check does not support !ToJsonString transform
1717
- ES1001 # Rule disabled because our Lambda functions don't need DestinationConfig.OnFailure
18-
- W3002
18+
- W3002 # Rule disabled as nested templates are being packaged
1919

2020
Parameters:
2121
Stage:
@@ -437,6 +437,8 @@ Resources:
437437
# CloudFormation Stack with the Contracts Service Event Registry and Schemas
438438
EventSchemasStack:
439439
Type: AWS::Serverless::Application
440+
UpdateReplacePolicy: Delete
441+
DeletionPolicy: Delete
440442
Properties:
441443
Location: "Integration/event-schemas.yaml"
442444
Parameters:
@@ -445,6 +447,8 @@ Resources:
445447
# CloudFormation Stack with the Cross-service EventBus policy for Contracts Service
446448
SubscriberPoliciesStack:
447449
Type: AWS::Serverless::Application
450+
UpdateReplacePolicy: Delete
451+
DeletionPolicy: Delete
448452
DependsOn:
449453
- UnicornContractsEventBusNameParam
450454
Properties:

Unicorn.Properties/template.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ Metadata:
1212
config:
1313
ignore_checks:
1414
- ES4000 # Rule disabled because the CatchAll Rule doesn't need a DLQ
15-
- ES6000 # Rule disabled because SQS DLOs don't need a RedrivePolicy
15+
- ES6000 # Rule disabled because SQS DLQs don't need a RedrivePolicy
1616
- E0001 # Rule disabled because cfn-lint cannot parse SAM Policy templates without arguments (ComprehendBasicAccessPolicy, RekognitionDetectOnlyPolicy)
1717
- WS2001 # Rule disabled because check does not support !ToJsonString transform
1818
- ES1001 # Rule disabled because our Lambda functions don't need DestinationConfig.OnFailure
19+
- W3002 # Rule disabled as nested templates are being packaged
1920

2021
Parameters:
2122
Stage:
@@ -270,7 +271,7 @@ Resources:
270271
Level: ALL
271272
IncludeExecutionData: true
272273
Events:
273-
PubApproReqEvent:
274+
PublicationApprovalRequestedEvent:
274275
Type: EventBridgeRule
275276
Properties:
276277
RuleName: unicorn.properties-PublicationApprovalRequested
@@ -448,6 +449,8 @@ Resources:
448449
# CloudFormation Stack with the Properties Service Event Registry and Schemas
449450
EventSchemasStack:
450451
Type: AWS::Serverless::Application
452+
UpdateReplacePolicy: Delete
453+
DeletionPolicy: Delete
451454
Properties:
452455
Location: "Integration/event-schemas.yaml"
453456
Parameters:
@@ -456,6 +459,8 @@ Resources:
456459
# CloudFormation Stack with the Cross-service EventBus policy for Properties Service
457460
SubscriberPoliciesStack:
458461
Type: AWS::Serverless::Application
462+
UpdateReplacePolicy: Delete
463+
DeletionPolicy: Delete
459464
DependsOn:
460465
- UnicornPropertiesEventBusNameParam
461466
Properties:
@@ -466,6 +471,8 @@ Resources:
466471
# CloudFormation Stack with the Cross-service EventBus Rules for Properties Service
467472
SubscriptionsStack:
468473
Type: AWS::Serverless::Application
474+
UpdateReplacePolicy: Delete
475+
DeletionPolicy: Delete
469476
DependsOn:
470477
- UnicornPropertiesEventBusArnParam
471478
Properties:

Unicorn.Web/template.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ Metadata:
1212
config:
1313
ignore_checks:
1414
- ES4000 # Rule disabled because the CatchAll Rule doesn't need a DLQ
15-
- ES6000 # Rule disabled because SQS DLOs don't need a RedrivePolicy
15+
- ES6000 # Rule disabled because SQS DLQs don't need a RedrivePolicy
1616
- WS2001 # Rule disabled because check does not support !ToJsonString transform
1717
- ES1001 # Rule disabled because our Lambda functions don't need DestinationConfig.OnFailure
18-
- W3002
18+
- W3002 # Rule disabled as nested templates are being packaged
1919

2020
Parameters:
2121
Stage:
@@ -424,6 +424,8 @@ Resources:
424424
# CloudFormation Stack with the Web Service Event Registry and Schemas
425425
EventSchemasStack:
426426
Type: AWS::Serverless::Application
427+
UpdateReplacePolicy: Delete
428+
DeletionPolicy: Delete
427429
Properties:
428430
Location: "Integration/event-schemas.yaml"
429431
Parameters:
@@ -432,6 +434,8 @@ Resources:
432434
# CloudFormation Stack with the Cross-service EventBus policy for Web Service
433435
SubscriberPoliciesStack:
434436
Type: AWS::Serverless::Application
437+
UpdateReplacePolicy: Delete
438+
DeletionPolicy: Delete
435439
DependsOn:
436440
- UnicornWebEventBusParam
437441
Properties:
@@ -442,6 +446,8 @@ Resources:
442446
# CloudFormation Stack with the Cross-service EventBus Rules for Web Service
443447
SubscriptionsStack:
444448
Type: AWS::Serverless::Application
449+
UpdateReplacePolicy: Delete
450+
DeletionPolicy: Delete
445451
DependsOn:
446452
- UnicornWebEventBusArnParam
447453
Properties:

0 commit comments

Comments
 (0)