aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

[cli] support adding multiple app names in cdk.json

Open alimeerutech opened this issue 4 years ago • 8 comments

support adding multiple app names in cdk.json

{
"apps": [
  { 
    "name": "app1",
    "command": "python dir1/app.py"
  },
  {
    "name": "app2",
    "command": "python dir2/app.py"
  }
]
}

Use Case

If you have multiple apps sharing the same cdk.json you either have to pass in the app via cdk --app or copy cdk.json around, it would be much nicer if we could support having a single cdk.json with multiple apps

Proposed Solution

support adding multiple app names in cdk.json

{
"apps": [
  { 
    "name": "app1",
    "command": "python dir1/app.py"
  },
  {
    "name": "app2",
    "command": "python dir2/app.py"
  }
]
}

Other

  • [ ] :wave: I may be able to implement this feature request
  • [X] :warning: This feature might incur a breaking change

This is a :rocket: Feature Request

alimeerutech avatar Jul 30 '20 00:07 alimeerutech

@alimeerutech have you tried putting shared configuration in ~/.cdk.json as a user setting, or is the use case that you have a group of apps that require specific shared settings and you'd like to be able to specify it all within app?

We might have a duplicate issue for this, i'll have to look. It was something we said we'd consider for 2.0 IIRC

shivlaks avatar Jul 30 '20 17:07 shivlaks

correct, that is the case. We have multiple apps sharing the same context variables. thanks

On Thu, Jul 30, 2020 at 10:35 AM Shiv Lakshminarayan < [email protected]> wrote:

@alimeerutech https://github.com/alimeerutech have you tried putting shared configuration in ~/.cdk.json as a user setting, or is the use case that you have a group of apps that require specific shared settings and you'd like to be able to specify it all within app?

We might have a duplicate issue for this, i'll have to look. It was something we said we'd consider for 2.0 IIRC

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aws/aws-cdk/issues/9346#issuecomment-666549873, or unsubscribe https://github.com/notifications/unsubscribe-auth/AONGMYI3NC5JY6D24Y5S27DR6GVPFANCNFSM4PMNCZSQ .

alimeerutech avatar Jul 30 '20 17:07 alimeerutech

+1 Or that way : https://github.com/aws/aws-cdk/issues/4543

Cloudrage avatar Nov 02 '20 08:11 Cloudrage

+1

hannonq avatar Dec 31 '20 10:12 hannonq

+1

hkhrais avatar Feb 01 '21 10:02 hkhrais

+1

bert-bae avatar Feb 07 '21 21:02 bert-bae

+1

github4es avatar Sep 09 '21 21:09 github4es

+1

ns-ajith avatar Sep 27 '21 12:09 ns-ajith

+1

brianarpie-forme avatar Oct 19 '22 20:10 brianarpie-forme

+1

cbou avatar Dec 19 '22 20:12 cbou

This issue has received a significant amount of attention so we are automatically upgrading its priority. A member of the community will see the re-prioritization and provide an update on the issue.

github-actions[bot] avatar Jan 29 '23 00:01 github-actions[bot]

Would it be easier to use a mono repo with a shared cdk folder ?

cpalmer-ostmodern avatar Feb 05 '23 00:02 cpalmer-ostmodern

any updates?

MathiasHaudgaard avatar Jul 04 '23 09:07 MathiasHaudgaard

This would be useful.

sigpop avatar Feb 09 '24 15:02 sigpop