Skip to content

Commit 090d65c

Browse files
committed
Ensure stage resources have stage names
1 parent 7f3dfbf commit 090d65c

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

.github/workflows/merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ jobs:
172172
pulumi stack select thunderbird/stage
173173
pulumi up -y --diff \
174174
--target 'urn:pulumi:stage::accounts::tb:fargate:FargateClusterWithLogging$aws:ecs/taskDefinition:TaskDefinition::accounts-stage-fargate-accounts-taskdef' \
175-
--target 'urn:pulumi:stage::accounts::aws:ecs/taskDefinition:TaskDefinition::accounts-stage-afc-accounts-taskdef-celery' \
176-
--target 'urn:pulumi:stage::accounts::aws:ecs/taskDefinition:TaskDefinition::accounts-stage-afc-accounts-taskdef-flower' \
175+
--target 'urn:pulumi:stage::accounts::aws:ecs/taskDefinition:TaskDefinition::accounts-stage-afc-accounts-taskdef-celery-stage' \
176+
--target 'urn:pulumi:stage::accounts::aws:ecs/taskDefinition:TaskDefinition::accounts-stage-afc-accounts-taskdef-flower-stage' \
177177
--target-dependents
178178
179179
# When accounts changes are merged in, build and push a new Docker image

pulumi/config.stage.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.accounts_image: &ACCOUNTS_IMAGE 768512802988.dkr.ecr.eu-central-1.amazonaws.com/thunderbird/accounts:378ccb8058f181e609ca79060f45adceb2affef4
77

88
# Update this value to update all containers based on this Keycloak image
9-
.keycloak_image: &KEYCLOAK_IMAGE 768512802988.dkr.ecr.eu-central-1.amazonaws.com/thunderbird/accounts:keycloak-54b1954de7ae3700681642a526c6566485982b90
9+
.keycloak_image: &KEYCLOAK_IMAGE 768512802988.dkr.ecr.eu-central-1.amazonaws.com/thunderbird/accounts:keycloak-7f3dfbfb801149e2557a2c100c989ca836d2b966
1010

1111
# These variables are common to Accounts application environments. Some tasks will require additional configuration.
1212
.admin_contact: &VAR_ADMIN_CONTACT {name: "ADMIN_CONTACT", value: "dummy@example.org"}
@@ -318,9 +318,9 @@ resources:
318318
cluster_name: accounts-stage
319319

320320
task_definitions:
321-
celery:
321+
celery-stage:
322322
<<: *ACCOUNTS_TASK_DEFINITION
323-
family: accounts-celery
323+
family: accounts-stage-celery
324324
cpu: 512
325325
memory: 1024
326326
container_definitions:
@@ -329,8 +329,8 @@ resources:
329329
logConfiguration:
330330
logDriver: awslogs
331331
options:
332-
awslogs-group: accounts-stage-afc-accounts-loggroup-celery
333-
awslogs-stream-prefix: accounts/stage/celery/
332+
awslogs-group: accounts-stage-afc-accounts-loggroup-celery-stage
333+
awslogs-stream-prefix: accounts/stage/celery-stage/
334334
awslogs-region: eu-central-1
335335
environment:
336336
- *VAR_ADMIN_CONTACT
@@ -384,9 +384,9 @@ resources:
384384
- name: TBA_FLOWER
385385
value: "no"
386386

387-
flower:
387+
flower-stage:
388388
<<: *ACCOUNTS_TASK_DEFINITION
389-
family: accounts-flower
389+
family: accounts-stage-flower
390390
cpu: 512
391391
memory: 1024
392392
container_definitions:
@@ -395,8 +395,8 @@ resources:
395395
logConfiguration:
396396
logDriver: awslogs
397397
options:
398-
awslogs-group: accounts-stage-afc-accounts-loggroup-flower
399-
awslogs-stream-prefix: accounts/stage/flower/
398+
awslogs-group: accounts-stage-afc-accounts-loggroup-flower-stage
399+
awslogs-stream-prefix: accounts/stage/flower-stage/
400400
awslogs-region: eu-central-1
401401
portMappings:
402402
- containerPort: 5555
@@ -536,12 +536,12 @@ resources:
536536
protocol: HTTPS
537537

538538
services:
539-
celery:
539+
celery-stage:
540540
assign_public_ip: yes
541541
service:
542542
desired_count: 1
543543
target: null
544-
flower:
544+
flower-stage:
545545
assign_public_ip: yes
546546
container_name: flower
547547
container_port: 5555
@@ -551,24 +551,24 @@ resources:
551551
target: flower
552552

553553
registries:
554-
celery:
554+
celery-stage:
555555
- arn:aws:ecr:eu-central-1:768512802988:repository/thunderbird/accounts*
556-
flower:
556+
flower-stage:
557557
- arn:aws:ecr:eu-central-1:768512802988:repository/thunderbird/accounts*
558558

559559
secrets:
560-
celery:
560+
celery-stage:
561561
- arn:aws:secretsmanager:eu-central-1:768512802988:secret:accounts/stage/*
562-
flower:
562+
flower-stage:
563563
- arn:aws:secretsmanager:eu-central-1:768512802988:secret:accounts/stage/*
564564

565565
ssm_params: {}
566566

567567
autoscalers:
568-
celery:
568+
celery-stage:
569569
min_capacity: 2
570570
max_capacity: 4
571-
flower:
571+
flower-stage:
572572
min_capacity: 1
573573
max_capacity: 1
574574

0 commit comments

Comments
 (0)