Skip to content

Commit 08b7878

Browse files
committed
refactor: updated resolve:ssm references for UnicornPropertiesNamespace to UnicornApprovalsNamespace across multiple templates
1 parent 4683f3e commit 08b7878

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

unicorn_contracts/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ Resources:
293293
- !Ref AWS::AccountId
294294
source:
295295
- "{{resolve:ssm:/uni-prop/UnicornContractsNamespace}}"
296-
- "{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
296+
- "{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}"
297297
- "{{resolve:ssm:/uni-prop/UnicornWebNamespace}}"
298298
State: ENABLED #You may want to disable this rule in production
299299
Targets:

unicorn_properties/integration/subscriber-policies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ Resources:
4646
"events:creatorAccount": "${aws:PrincipalAccount}"
4747
StringEquals:
4848
"events:source":
49-
- "{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
49+
- "{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}"
5050
"Null":
5151
"events:source": "false"

unicorn_properties/template.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ Globals:
5454
Variables:
5555
CONTRACT_STATUS_TABLE: !Ref ContractStatusTable
5656
EVENT_BUS: !Ref UnicornPropertiesEventBus
57-
SERVICE_NAMESPACE: "{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
57+
SERVICE_NAMESPACE: "{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}"
5858
POWERTOOLS_LOGGER_CASE: PascalCase
59-
POWERTOOLS_SERVICE_NAME: "{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
59+
POWERTOOLS_SERVICE_NAME: "{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}"
6060
POWERTOOLS_TRACE_DISABLED: "false" # Explicitly disables tracing, default
6161
POWERTOOLS_LOGGER_LOG_EVENT: !If [IsProd, "false", "true"] # Logs incoming event, default
6262
POWERTOOLS_LOGGER_SAMPLE_RATE: !If [IsProd, "0.1", "0"] # Debug log sampling percentage, default
63-
POWERTOOLS_METRICS_NAMESPACE: "{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
63+
POWERTOOLS_METRICS_NAMESPACE: "{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}"
6464
POWERTOOLS_LOG_LEVEL: INFO # Log level for Logger (INFO, DEBUG, etc.), default
6565
LOG_LEVEL: INFO # Log level for Logger
6666
Tags:
6767
stage: !Ref Stage
6868
project: !FindInMap [Constants, ProjectName, Value]
69-
namespace: "{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
69+
namespace: "{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}"
7070

7171
Resources:
7272
#### SSM PARAMETERS
@@ -261,7 +261,7 @@ Resources:
261261
TableName: !Ref ContractStatusTable
262262
ImageUploadBucketName: !Sub "{{resolve:ssm:/uni-prop/${Stage}/ImagesBucket}}"
263263
EventBusName: !GetAtt UnicornPropertiesEventBus.Name
264-
ServiceName: "{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
264+
ServiceName: "{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}"
265265

266266
# Store ApprovalStateMachineLogGroup workflow execution logs
267267
ApprovalStateMachineLogGroup:
@@ -285,7 +285,7 @@ Resources:
285285
- Key: project
286286
Value: !FindInMap [Constants, ProjectName, Value]
287287
- Key: namespace
288-
Value: "{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
288+
Value: "{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}"
289289
- Key: stage
290290
Value: !Ref Stage
291291

@@ -301,7 +301,7 @@ Resources:
301301
- Key: project
302302
Value: !FindInMap [Constants, ProjectName, Value]
303303
- Key: namespace
304-
Value: "{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
304+
Value: "{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}"
305305
- Key: stage
306306
Value: !Ref Stage
307307

@@ -324,7 +324,7 @@ Resources:
324324
- Key: project
325325
Value: !FindInMap [Constants, ProjectName, Value]
326326
- Key: namespace
327-
Value: "{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
327+
Value: "{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}"
328328
- Key: stage
329329
Value: !Ref Stage
330330

@@ -355,7 +355,7 @@ Resources:
355355
Condition:
356356
StringEquals:
357357
events:source:
358-
- "{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
358+
- "{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}"
359359

360360
# Catchall rule used for development purposes. Logs all events matching any of the services to CloudWatch Logs
361361
UnicornPropertiesCatchAllRule:
@@ -371,7 +371,7 @@ Resources:
371371
- !Ref AWS::AccountId
372372
source:
373373
- "{{resolve:ssm:/uni-prop/UnicornContractsNamespace}}"
374-
- "{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
374+
- "{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}"
375375
- "{{resolve:ssm:/uni-prop/UnicornWebNamespace}}"
376376
State: ENABLED #You may want to disable this rule in production
377377
Targets:
@@ -387,7 +387,7 @@ Resources:
387387
LogGroupName: !Sub
388388
- "/aws/events/${Stage}/${NS}-catchall"
389389
- Stage: !Ref Stage
390-
NS: "{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
390+
NS: "{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}"
391391
RetentionInDays: !FindInMap [LogsRetentionPeriodMap, !Ref Stage, Days]
392392

393393
# Permissions to allow EventBridge to send logs to CloudWatch

unicorn_web/integration/subscriptions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Resources:
2323
Fn::Sub: "{{resolve:ssm:/uni-prop/${Stage}/UnicornPropertiesEventBusArn}}"
2424
EventPattern:
2525
source:
26-
- "{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
26+
- "{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}"
2727
detail-type:
2828
- PublicationEvaluationCompleted
2929
State: ENABLED

unicorn_web/template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Resources:
157157
EventBusName: !Ref UnicornWebEventBus
158158
Pattern:
159159
source:
160-
- "{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
160+
- "{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}"
161161
detail-type:
162162
- PublicationEvaluationCompleted
163163

@@ -362,7 +362,7 @@ Resources:
362362
- !Ref AWS::AccountId
363363
source:
364364
- "{{resolve:ssm:/uni-prop/UnicornContractsNamespace}}"
365-
- "{{resolve:ssm:/uni-prop/UnicornPropertiesNamespace}}"
365+
- "{{resolve:ssm:/uni-prop/UnicornApprovalsNamespace}}"
366366
- "{{resolve:ssm:/uni-prop/UnicornWebNamespace}}"
367367
State: ENABLED #You may want to disable this rule in production
368368
Targets:

0 commit comments

Comments
 (0)