@@ -72,13 +72,17 @@ Resources:
7272 # Services share their event bus name and arn
7373 UnicornPropertiesEventBusNameParam :
7474 Type : AWS::SSM::Parameter
75+ DeletionPolicy : Delete
76+ UpdateReplacePolicy : Delete
7577 Properties :
7678 Type : String
7779 Name : !Sub /uni-prop/${Stage}/UnicornPropertiesEventBus
7880 Value : !GetAtt UnicornPropertiesEventBus.Name
7981
8082 UnicornPropertiesEventBusArnParam :
8183 Type : AWS::SSM::Parameter
84+ DeletionPolicy : Delete
85+ UpdateReplacePolicy : Delete
8286 Properties :
8387 Type : String
8488 Name : !Sub /uni-prop/${Stage}/UnicornPropertiesEventBusArn
@@ -196,6 +200,8 @@ Resources:
196200 # ### STATE MACHINE
197201 ApprovalStateMachine :
198202 Type : AWS::Serverless::StateMachine
203+ DeletionPolicy : Delete
204+ UpdateReplacePolicy : Delete
199205 Properties :
200206 Name : !Sub "${AWS::StackName}-ApprovalStateMachine"
201207 DefinitionUri : state_machine/property_approval.asl.yaml
@@ -251,7 +257,7 @@ Resources:
251257 Destination : !GetAtt PropertiesServiceDLQ.Arn
252258 DefinitionSubstitutions :
253259 WaitForContractApprovalArn : !GetAtt WaitForContractApprovalFunction.Arn
254- TableName : !Ref ContractStatusTable
260+ TableName : !Ref ContractStatusTable
255261 ImageUploadBucketName : !Sub "{{resolve:ssm:/uni-prop/${Stage}/ImagesBucket}}"
256262 EventBusName : !GetAtt UnicornPropertiesEventBus.Name
257263 ServiceName : " {{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
@@ -315,7 +321,7 @@ Resources:
315321 BillingMode : PAY_PER_REQUEST
316322 Tags :
317323 - Key : project
318- Value : !FindInMap [ Constants, ProjectName, Value ]
324+ Value : !FindInMap [Constants, ProjectName, Value]
319325 - Key : namespace
320326 Value : " {{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
321327 - Key : stage
@@ -325,12 +331,16 @@ Resources:
325331 # Event bus for Unicorn Properties Service, used to publish and consume events
326332 UnicornPropertiesEventBus :
327333 Type : AWS::Events::EventBus
334+ DeletionPolicy : Delete
335+ UpdateReplacePolicy : Delete
328336 Properties :
329337 Name : !Sub UnicornPropertiesBus-${Stage}
330338
331339 # Event bus policy to restrict who can publish events (should only be services from UnicornPropertiesNamespace)
332340 UnicornPropertiesEventsBusPublishPolicy :
333341 Type : AWS::Events::EventBusPolicy
342+ DeletionPolicy : Delete
343+ UpdateReplacePolicy : Delete
334344 Properties :
335345 EventBusName : !Ref UnicornPropertiesEventBus
336346 StatementId : !Sub OnlyPropertiesServiceCanPublishToEventBus-${Stage}
@@ -349,6 +359,8 @@ Resources:
349359 # Catchall rule used for development purposes. Logs all events matching any of the services to CloudWatch Logs
350360 UnicornPropertiesCatchAllRule :
351361 Type : AWS::Events::Rule
362+ DeletionPolicy : Delete
363+ UpdateReplacePolicy : Delete
352364 Properties :
353365 Name : properties.catchall
354366 Description : Catchall rule used for development purposes.
0 commit comments