-
Notifications
You must be signed in to change notification settings - Fork 4
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
chore: simplify deployment #96
Conversation
ac8b96c
to
e6becdc
Compare
Fun times ! The workflow 'succeeded', but the stack wasn't actually destroyed (I checked on the AWS console). This is the bit that's causing me challenges :
This ran 'fine' in the above workflow. It didn't actually destroy the deployed stack, though :/. Recap : I want the workflow to be resilient to a sudden cancel in the middle of the deployment ; i.e, I want the destruction to happen properly in these cases. The problem is that in these cases, People have been saying that removing the file manually
This is probably why the stack doesn't actually get destroyed... Edit : actually, it's probably not destroyed because I am using time stamps up the second to name stacks, and since cdk destroy runs a new synth from scratch, it uses a different time stamp and therefore a different stack name ... no wonder it doesn't destroy the initial stack 😆 I am going to use the branch name instead of the time stamp ! |
bc23552
to
61aa140
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
61aa140
to
24573cd
Compare
24573cd
to
25132ee
Compare
successful workflow : https://github.com/developmentseed/eoapi-cdk/actions/runs/8010980629 merging |
The manual deployment workflow ran successfully
have all the cdk code in one
app.py
fileadd the vector app
add a letter representation of
datetime.datetime.utcnow()
to the test stack ids in case (who knows 🤷♂️) several people try to test their PR at the same time. This will fail though if they trigger their workflow at the exact same second, but that's much less likely to happen ! I could use the branch name instead, but then I need to change the workflow again... edit: eventually decided to use the branch name _edit: second edit, branch name has slashes sometimes, which doesn't work with cloudformation, so I decided to use the short commit sha eventually.