aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.67k stars 3.92k forks source link

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

Open alimeerutech opened 4 years ago

alimeerutech commented 4 years ago

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


This is a :rocket: Feature Request

shivlaks commented 4 years ago

@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

alimeerutech commented 4 years ago

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 < notifications@github.com> 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 .

Cloudrage commented 4 years ago

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

hannonq commented 3 years ago

+1

hkhrais commented 3 years ago

+1

bert-bae commented 3 years ago

+1

edgar-slalom commented 3 years ago

+1

ns-ajith commented 3 years ago

+1

brianarpie-forme commented 2 years ago

+1

cbou commented 1 year ago

+1

github-actions[bot] commented 1 year ago

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.

cpalmer-ostmodern commented 1 year ago

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

MathiasHaudgaard commented 1 year ago

any updates?

sigpop commented 9 months ago

This would be useful.

ribase commented 2 months ago

Anything going on here, this feature still would be nice to have...