Skip to content

Commit

Permalink
fix(stacks.maintenance-site): explicit dependency to resolve workflow…
Browse files Browse the repository at this point in the history
… generation issue

Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
  • Loading branch information
BradenM committed Jun 19, 2024
1 parent e770424 commit cf83bad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-au-offline-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ jobs:
targets="./cdk.out/publish-Assets-FileAsset1-step.sh,./cdk.out/publish-Assets-FileAsset2-step.sh,./cdk.out/publish-Assets-FileAsset3-step.sh,./cdk.out/publish-Assets-FileAsset4-step.sh,./cdk.out/publish-Assets-FileAsset5-step.sh,./cdk.out/publish-Assets-FileAsset6-step.sh,./cdk.out/publish-Assets-FileAsset7-step.sh,./cdk.out/publish-Assets-FileAsset8-step.sh"
echo -n "$targets" | xargs -r -d',' -t -n1 -P2 /bin/bash
production-au-auofflinesiteauofflinesitezonestack-eaac685-e-deploy:
name: Deploy productionauauofflinesiteauofflinesitezonestackDB775D5A
production-au-au-offline-site-zone-stack-deploy:
name: Deploy productionauauofflinesitezonestackCFFB701E
permissions:
contents: read
id-token: write
Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:
- id: Deploy
uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0
with:
name: production-au-auofflinesiteauofflinesitezonestackEAAC685E
name: production-au-au-offline-site-zone-stack
template: https://cdk-hnb659fds-assets-${{secrets.AWS_ACCOUNT_ID_PRODUCTION_AU}}-us-east-1.s3.us-east-1.amazonaws.com/${{
needs.publish.outputs.asset-hash1 }}.json
no-fail-on-empty-changeset: "1"
Expand All @@ -195,7 +195,7 @@ jobs:
id-token: write
needs:
- Build-deploy-au-offline-site-synth
- production-au-auofflinesiteauofflinesitezonestackEAAC685E-Deploy
- production-au-au-offline-site-zone-stack-Deploy
- publish
runs-on: ${{inputs.runner || 'ubuntu-latest'}}
steps:
Expand Down
3 changes: 2 additions & 1 deletion packages/stacks/maintenance-site/src/maintenance-site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ export class MaintenanceSite extends Stack {
// eslint-disable-next-line @typescript-eslint/no-this-alias
let certStack: Stack = this
if (this.region !== 'us-east-1') {
certStack = new Stack(this, id + '-zone-stack', {
certStack = new Stack(scope, id + '-zone-stack', {
description: `Zone Stack for maintenance site`,
crossRegionReferences: true,
env: { account: this.account, region: 'us-east-1' },
})
this.node.addDependency(certStack)
}

if (stackProps?.env) {
Expand Down

0 comments on commit cf83bad

Please sign in to comment.