-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploy Multiple Stacks at Once #650
Comments
This would be useful together with the Kubernetes Provider, a cluster normally needs some workloads on it to be useful, but the provider credentials can't be set to a not yet existing cluster. Is this strictly blocked on #651? We can not infer the DAG based on references, but we could introduce an intermediate API that we can remove once the cross-stack references work. This would enable us to do some of this worked removed from the reference work. I thought of sth to the effect of this as an API: const app = new App();
const infraLayer = new Infrastructure(app, "infra");
const appLayer = new Applications(app, "app");
appLayer.dependsOn(infraLayer);
app.synth(); This would have non of the magic, you would need to use Terraform Data Elements in the application layer to get the resource context of the cluster, but you could express the relationship already. |
Talked with @ansgarm: We need to find a good UX around selecting the stacks to deploy.
|
I really like that direction @DanielMSchmidt - The reason you have to select a stack right now is, that we can't resolve dependencies between stacks. If we would be able to do this, why not deploy all of them by default and allow the user to filter with the glob style you described? |
No, if we introduce the API mentioned we would be able to describe dependencies between stacks. We can not automatically derive them before #651 is done though. The idea for the glob was to have the least surprising interface by default. Being a bit more verbose would help to avoid confusion if more than one stack is deployed / destroyed |
May want to follow what AWS CDK does: https://docs.aws.amazon.com/cdk/latest/guide/cli.html#cli-stacks |
yeah that's exactly what I meant, thank for the link! |
Putting feedback from @ansgarm here:
|
Closed by
|
I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Community Note
Description
With #636 we introduced multiple stacks where we handle only one stack at the time via a given
target-stack
argument. We should enable a full, automated deployment.References
The text was updated successfully, but these errors were encountered: