Skip to content

Commit be620b9

Browse files
committed
throttle sceptre requests
AWS is throttling cloudformation deployments to service catalog accounts because there are too many requests to the service catalog APIs. This is causing deployments to fail and put service catalog in a bad state. This reverts the temporary disabling of service catalog deployments. It also installs a development version of Sceptre containing a max-concurrency option that will throttle sceptre requests to avoid the AWS throttling.
1 parent b608eb9 commit be620b9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/aws-deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Install dependencies
4646
run: |
4747
python -m pip install --upgrade pip
48-
pip install sceptre sceptre-json-resolver sceptre-request-resolver sceptre-ssm-resolver
48+
pip install git+https://github.com/zaro0508/sceptre@max-concurrency sceptre-json-resolver sceptre-request-resolver sceptre-ssm-resolver
4949
- name: Assume AWS Role
5050
uses: aws-actions/configure-aws-credentials@v2
5151
with:

.github/workflows/aws-scipool.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Install dependencies
4747
run: |
4848
python -m pip install --upgrade pip
49-
pip install sceptre sceptre-json-resolver sceptre-request-resolver sceptre-ssm-resolver
49+
pip install git+https://github.com/zaro0508/sceptre@max-concurrency sceptre-json-resolver sceptre-request-resolver sceptre-ssm-resolver
5050
- name: Assume AWS Role
5151
uses: aws-actions/configure-aws-credentials@v2
5252
with:

.github/workflows/deploy.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
role-to-assume: "arn:aws:iam::465877038949:role/sagebase-github-oidc-sage-bionetworks-it"
118118
working-dir: "sceptre/scipool"
119119
role-session-name: ${{ needs.org-formation.outputs.role-session-name }}
120-
sceptre-command: "sceptre launch develop --prune --yes"
120+
sceptre-command: "sceptre launch develop --prune --yes --max-concurrency 1"
121121
sceptre-scipoolprod:
122122
needs: [org-formation]
123123
uses: "./.github/workflows/aws-scipool.yaml"
@@ -132,15 +132,15 @@ jobs:
132132
role-to-assume: "arn:aws:iam::423819316185:role/github-oidc-sage-bionetworks-it"
133133
role-session-name: ${{ needs.org-formation.outputs.role-session-name }}
134134
working-dir: "sceptre/scipool"
135-
sceptre-command: "sceptre launch strides --prune --yes"
135+
sceptre-command: "sceptre launch strides --prune --yes --max-concurrency 1"
136136
sceptre-sageit-staging:
137137
needs: [org-formation]
138138
uses: "./.github/workflows/aws-deploy.yaml"
139139
with:
140140
role-to-assume: "arn:aws:iam::797640923903:role/sagebase-github-oidc-sage-bionetworks-it"
141141
role-session-name: ${{ needs.org-formation.outputs.role-session-name }}
142142
working-dir: "sceptre/sageit"
143-
sceptre-command: "sceptre launch staging --prune --yes"
143+
sceptre-command: "sceptre launch staging --prune --yes --max-concurrency 1"
144144
sceptre-sageit-prod:
145145
needs: [org-formation]
146146
uses: "./.github/workflows/aws-deploy.yaml"

0 commit comments

Comments
 (0)