Skip to content

Commit 23e4cc3

Browse files
committed
fix: syncing templates
1 parent 4f52d9d commit 23e4cc3

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

unicorn_approvals/template.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ AWSTemplateFormatVersion: "2010-09-09"
44
Transform:
55
- AWS::Serverless-2016-10-31
66
Description: >
7-
Unicorn Properties Service. Validate the content, images and contract of property listings.
7+
Unicorn Approvals Service. Validate the content, images and contract of property listings.
88
99
Metadata:
1010
cfn-lint:
@@ -288,7 +288,7 @@ Resources:
288288
- Key: stage
289289
Value: !Ref Stage
290290

291-
# Store failed INVOCATIONS to each Lambda function in Unicorn Properties Service
291+
# Store failed INVOCATIONS to each Lambda function in Unicorn Approvals Service
292292
ApprovalsServiceDLQ:
293293
Type: AWS::SQS::Queue
294294
UpdateReplacePolicy: Delete
@@ -328,13 +328,13 @@ Resources:
328328
Value: !Ref Stage
329329

330330
#### EVENT BUS
331-
# Event bus for Unicorn Properties Service, used to publish and consume events
331+
# Event bus for Unicorn Approvals Service, used to publish and consume events
332332
UnicornApprovalsEventBus:
333333
Type: AWS::Events::EventBus
334334
DeletionPolicy: Delete
335335
UpdateReplacePolicy: Delete
336336
Properties:
337-
Name: !Sub UnicornPropertiesBus-${Stage}
337+
Name: !Sub UnicornApprovalsBus-${Stage}
338338

339339
# Event bus policy to restrict who can publish events (should only be services from UnicornApprovalsNamespace)
340340
UnicornApprovalsEventsBusPublishPolicy:
@@ -419,7 +419,7 @@ Resources:
419419
}
420420
421421
#### CLOUDFORMATION NESTED STACKS
422-
# CloudFormation Stack with the Properties Service Event Registry and Schemas
422+
# CloudFormation Stack with the Approvals Service Event Registry and Schemas
423423
EventSchemasStack:
424424
Type: AWS::Serverless::Application
425425
UpdateReplacePolicy: Delete
@@ -429,7 +429,7 @@ Resources:
429429
Parameters:
430430
Stage: !Ref Stage
431431

432-
# CloudFormation Stack with the Cross-service EventBus policy for Properties Service
432+
# CloudFormation Stack with the Cross-service EventBus policy for Approvals Service
433433
SubscriberPoliciesStack:
434434
Type: AWS::Serverless::Application
435435
UpdateReplacePolicy: Delete
@@ -441,7 +441,7 @@ Resources:
441441
Parameters:
442442
Stage: !Ref Stage
443443

444-
# CloudFormation Stack with the Cross-service EventBus Rules for Properties Service
444+
# CloudFormation Stack with the Cross-service EventBus Rules for Approvals Service
445445
SubscriptionsStack:
446446
Type: AWS::Serverless::Application
447447
UpdateReplacePolicy: Delete
@@ -482,7 +482,7 @@ Outputs:
482482
Value: !Ref ApprovalStateMachine
483483

484484
#### EVENT BRIDGE OUTPUTS
485-
UnicornPropertiesEventBusName:
485+
UnicornApprovalsEventBusName:
486486
Value: !GetAtt UnicornApprovalsEventBus.Name
487487

488488
#### CLOUDWATCH LOGS OUTPUTS

unicorn_contracts/template.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
# SPDX-License-Identifier: MIT-0
3-
AWSTemplateFormatVersion: 2010-09-09
3+
AWSTemplateFormatVersion: "2010-09-09"
44
Transform:
55
- AWS::Serverless-2016-10-31
66
Description: >
@@ -15,9 +15,7 @@ Metadata:
1515
- WS2001 # Rule disabled because check does not support !ToJsonString transform
1616
- ES1001 # Rule disabled because our Lambda functions don't need DestinationConfig.OnFailure
1717
- W3002 # Rule disabled as nested templates are being packaged
18-
- E3030 # Rule disabled due to using cfn-lint-serverless rules v0.3
19-
- E3002 # Rule disabled due to using cfn-lint-serverless rules v0.3
20-
18+
2119
Parameters:
2220
Stage:
2321
Type: String

unicorn_web/template.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Metadata:
1515
- WS2001 # Rule disabled because check does not support !ToJsonString transform
1616
- ES1001 # Rule disabled because our Lambda functions don't need DestinationConfig.OnFailure
1717
- W3002 # Rule disabled as nested templates are being packaged
18-
- E3030 # Rule disabled due to using cfn-lint-serverless rules v0.3
1918

2019
Parameters:
2120
Stage:
@@ -462,7 +461,7 @@ Outputs:
462461
Description: "GET request to list all properties in a given street"
463462
Value: !Sub "https://${UnicornWebApi}.execute-api.${AWS::Region}.${AWS::URLSuffix}/${Stage}/search/{country}/{city}/{street}"
464463
ApiPropertyApproval:
465-
Description: "POST request to add a property to the database"
464+
Description: "POST request approval to allow property to be searchable"
466465
Value: !Sub "https://${UnicornWebApi}.execute-api.${AWS::Region}.${AWS::URLSuffix}/${Stage}/request_approval"
467466
ApiPropertyDetails:
468467
Description: "GET request to get the full details of a single property"

0 commit comments

Comments
 (0)