cdklabs / cdklabs/cdk-pipelines-github

Deploying multiple stages to different accounts

Open
#391 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
384
Forks
45
Avg merge
1d 1h
Merged PRs (30d)
4

Description

I have a simple application that I would like to deploy in two stages to a `dev` and a `prod` account.

The generated workflow creates asset publishing jobs that try to deploy the shared assets to two different accounts, e.g.:

cdk.out/publish-Assets-FileAsset2-step.sh
```sh
set -ex
npx cdk-assets --path "cdk.out/assembly-Dev/DevSampleComponent408C8649.assets.json" --verbose publish "b46c69876cded265976e982f147d1783eeb5ba986b2668164e3f8c65113601ed:1234567890-eu-central-1"
npx cdk-assets --path "cdk.out/assembly-Prod/ProdSampleComponent911303F5.assets.json" --verbose publish "b46c69876cded265976e982f147d1783eeb5ba986b2668164e3f8c65113601ed:0987654321-eu-central-1"
```
Currently, the credentials either have permission to publish to one or the other account, but not both.

Is this a valid use case? How is this supposed to work?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.