Untitled
unknown
plain_text
17 days ago
2.3 kB
2
Indexable
Never
on: workflow_call: inputs: aws-dev-account: description: The AWS account to use while synthesizing stacks in dev required: true type: string aws-staging-account: description: The AWS account to use while synthesizing stacks in staging required: true type: string aws-prod-account: description: The AWS account to use while synthesizing stacks in prod required: true type: string aws-primary-region: description: The primary AWS region to synthesize stacks for required: true type: string aws-secondary-region: description: The secondary AWS region to synthesize stacks for required: true type: string node-version: description: The version of Node to use for IaC deployment required: false type: string default: '18' python-version: description: The version of python to use for IaC deployment required: false type: string default: '3.9' jobs: synth-dev: if : contains(github.ref, '/dev') uses : ./.github/workflows/cdk-synth.yaml with : working-dir : infra/cdk aws-environment : dev aws-account : ${{ inputs.aws-dev-account }} aws-primary-region : ${{ inputs.aws-primary-region }} aws-secondary-region : ${{ inputs.aws-secondary-region }} secrets : inherit synth-staging: if : github.ref == 'refs/heads/release/staging' || github.base_ref == 'release/staging' uses : ./.github/workflows/cdk-synth.yaml with : working-dir : infra/cdk aws-environment : staging aws-account : ${{ inputs.aws-staging-account }} aws-primary-region : ${{ inputs.aws-primary-region }} aws-secondary-region : ${{ inputs.aws-secondary-region }} secrets : inherit synth-prod: if : github.ref == 'refs/heads/main' || github.base_ref == 'main' uses : ./.github/workflows/cdk-synth.yaml with : working-dir : infra/cdk aws-environment : prod aws-account : ${{ inputs.aws-prod-account }} aws-primary-region : ${{ inputs.aws-primary-region }} aws-secondary-region : ${{ inputs.aws-secondary-region }} secrets : inherit
Leave a Comment