Skip to content

Commit 8481e6b

Browse files
authored
[IT-4721] configure ReplaceProvisioningArtifacts to match prod env (#1500)
This is a continuation of PR #1499. Forgot to include changes to setup the GH workflow to do the same across all service catalog accounts.
1 parent a797df0 commit 8481e6b

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/aws-scipool.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020
working-dir:
2121
required: true
2222
type: string
23+
target-environment:
24+
required: true
25+
type: string
2326
sceptre-command:
2427
type: string
2528
default: "sceptre launch prod --prune --yes"
@@ -58,10 +61,7 @@ jobs:
5861
# SC-26 & SC-219 workaround: dis-associate and re-associate SC actions on every deploy
5962
run: |
6063
cd ${{ inputs.working-dir }}
61-
sceptre delete --yes prod/sc-product-assoc-ec2-linux-docker.yaml
62-
sceptre delete --yes prod/sc-product-assoc-ec2-linux-docker-notebook.yaml
63-
sceptre delete --yes prod/sc-product-assoc-ec2-linux-windows-jumpcloud.yaml
64-
sceptre delete --yes strides/sc-product-assoc-ec2-linux-docker.yaml
65-
sceptre delete --yes strides/sc-product-assoc-ec2-linux-docker-notebook.yaml
66-
sceptre delete --yes strides/sc-product-assoc-ec2-linux-windows-jumpcloud.yaml
64+
sceptre delete --yes ${{ inputs.target-environment }}/sc-product-assoc-ec2-linux-docker.yaml
65+
sceptre delete --yes ${{ inputs.target-environment }}/sc-product-assoc-ec2-linux-docker-notebook.yaml
66+
sceptre delete --yes ${{ inputs.target-environment }}/sc-product-assoc-ec2-linux-windows-jumpcloud.yaml
6767
${{ inputs.sceptre-command }}

.github/workflows/deploy.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ jobs:
112112
working-dir: "sceptre/strides-ampad-workflows"
113113
sceptre-scipooldev:
114114
needs: [org-formation]
115-
uses: "./.github/workflows/aws-deploy.yaml"
115+
uses: "./.github/workflows/aws-scipool.yaml"
116116
with:
117+
target-environment: "develop"
117118
role-to-assume: "arn:aws:iam::465877038949:role/sagebase-github-oidc-sage-bionetworks-it"
118119
working-dir: "sceptre/scipool"
119120
role-session-name: ${{ needs.org-formation.outputs.role-session-name }}
@@ -122,6 +123,7 @@ jobs:
122123
needs: [org-formation]
123124
uses: "./.github/workflows/aws-scipool.yaml"
124125
with:
126+
target-environment: "prod"
125127
role-to-assume: "arn:aws:iam::237179673806:role/sagebase-github-oidc-sage-bionetworks-it"
126128
role-session-name: ${{ needs.org-formation.outputs.role-session-name }}
127129
working-dir: "sceptre/scipool"
@@ -130,6 +132,7 @@ jobs:
130132
needs: [org-formation, sceptre-strides]
131133
uses: "./.github/workflows/aws-scipool.yaml"
132134
with:
135+
target-environment: "strides"
133136
role-to-assume: "arn:aws:iam::423819316185:role/github-oidc-sage-bionetworks-it"
134137
role-session-name: ${{ needs.org-formation.outputs.role-session-name }}
135138
working-dir: "sceptre/scipool"

0 commit comments

Comments
 (0)