Open raffidahmad opened 5 months ago
Hello @raffidahmad This seems to be due to the limitation that creating the changeset, which creates a stack (although does not execute, so does not create any resources), you can't plan over the same stack name. You would need to delete the root stack and nested stacks to be able to create a new "plan"
Hello @raffidahmad This seems to be due to the limitation that creating the changeset, which creates a stack (although does not execute, so does not create any resources), you can't plan over the same stack name. You would need to delete the root stack and nested stacks to be able to create a new "plan"
Hi @JohnPreston , yes i was able to use "up" and continue on however i think it would be a good feature to have no? To be able to see the plan/changeset before doing the up operation.
Yes, agreed, but then I need to handle the "already exists exception" and prompt the user whether they want to do a cleanup first then run the plan again. Does that make sense?
I might be misunderstanding here but does it mean if i created a stack using up first, the next time i make a change and do "plan", i will first need to delete the stack i already made before?
Or do you mean a "plan" cannot happen over a "plan"
I don't think so, no. But if the stack is not created but review in progress
then I think that's where you get the exception. I am going to test all this and see what happens, I don't recall on top of my head TBH, I for pipelines purposes use create
all the time
Okay, I did not test out "create" for my use case but I'll try it out and see what happens. I imagined "plan" more like git diff e.g. if im planning out my CI/CD process to include a step for cloudformation,
Were my expectations misaligned with what it is actually for?
No, your exceptions are correct, I just never did implement the plan
that retrieves the diff on an existing stack, I don't recall doing that anyways. But if a ChangeSet already exists, it has to be deleted or created again with a different name. So that could be the easy fix.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Docker compose file:
aws-compose-extension:
Expected behavior I first create my stack using only 1 service, it works ecs-compose-x plan -f compose.yaml -f compose.ecs-extension.yaml -n microservices
Then i add another service, its listener (i cant add the :port that also fails for some reason) and when i run the same plan command again ecs-compose-x plan -f compose.yaml -f compose.ecs-extension.yaml -n microservices
everything works seemingly but when it's supposed to show the changeset it throws an error that the stack already exists. When it should just update the stack and add the new ones. Or am i doing this wrong?
Logs Error from compose-x after everything is done:
An error occurred (ValidationError) when calling the CreateChangeSet operation: Stack [microservices] already exists and cannot be created again with the changeSet [microserviceslisoguuxne].
Desktop (please complete the following information):