Skip to content

Commit 2b09526

Browse files
committed
fix: minor policy updates for nested stacks
1 parent bb8d31e commit 2b09526

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:
@@ -438,6 +438,8 @@ Resources:
438438
# CloudFormation Stack with the Contracts Service Event Registry and Schemas
439439
EventSchemasStack:
440440
Type: AWS::Serverless::Application
441+
UpdateReplacePolicy: Delete
442+
DeletionPolicy: Delete
441443
Properties:
442444
Location: "integration/event-schemas.yaml"
443445
Parameters:
@@ -446,6 +448,8 @@ Resources:
446448
# CloudFormation Stack with the Cross-service EventBus policy for Contracts Service
447449
SubscriberPoliciesStack:
448450
Type: AWS::Serverless::Application
451+
UpdateReplacePolicy: Delete
452+
DeletionPolicy: Delete
449453
DependsOn:
450454
- UnicornContractsEventBusNameParam
451455
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)