aws-cdk
aws-cdk copied to clipboard
[cli] support adding multiple app names in cdk.json
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 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
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 .
+1 Or that way : https://github.com/aws/aws-cdk/issues/4543
+1
+1
+1
+1
+1
+1
+1
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.
Would it be easier to use a mono repo with a shared cdk folder ?
any updates?
This would be useful.