Skip to content
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

Updating manifest fails when addons stack present - empty addons stack changeset results in failure #2089

Open
ghost opened this issue Mar 22, 2021 · 9 comments · Fixed by #2270
Labels
type/bug Issues that are bugs.

Comments

@ghost
Copy link

ghost commented Mar 22, 2021

If an application has an addons stack defined, after initial successful deployment, making a change to the manifest.yml and redeploying fails - Cloudformation gives an error that there are no changes to make to the addons stack and the deployment fails - which is technically true in that there are no changes to the addons stack yml, but to the main manifest yml. Any subsequent changes which require redeployment with the addons stack in place fails due to the changeset status failing.

Screen Shot 2021-03-22 at 3 06 46 PM

Screen Shot 2021-03-22 at 3 06 34 PM

@bvtujo bvtujo added the type/bug Issues that are bugs. label Mar 24, 2021
@huanjani
Copy link
Contributor

Hello, @mptaws!

Thanks for your patience as we dug into this. I was able to recreate this failure with your addons template, though when I did the same steps with a different addons template, the redeployment succeeded.

We believe the issue lies with the double-nested stack that is created by the macros in Transform:. You don't appear to be the only one having this CloudFormation problem (https://forums.aws.amazon.com/thread.jspa?threadID=336657&tstart=0)! What happens if you inline those two resources rather than using the macros?

@ghost
Copy link
Author

ghost commented Mar 24, 2021 via email

@huanjani
Copy link
Contributor

I tried this with 1.3 and had the same issue. It worked with that same template? 🤔

@ghost
Copy link
Author

ghost commented Mar 24, 2021 via email

@huanjani
Copy link
Contributor

huanjani commented May 3, 2021

Hi @mptaws!

Just curious if this issue persists...?

@srbartlett
Copy link

srbartlett commented May 4, 2021

Hi, I'm seeing a similar issue. My scenario is:
Single LB service with Aurora RDS addon

Creating a new environment and running deploy fails with

a9e7f692: digest: sha256:d1d8e52c0ce40f81077774b22f8252fabb6e87c535b7bfbb3c067c269f01e549 size: 3261
✘ Proposing infrastructure changes for stack xxxx
✘ execute svc deploy: deploy service: change set with name copilot-xxx for stack xxx has no changes

It leaves the stack in REVIEW_IN_PROGRESS

Deleting the addon and re-running deploy works as expected.

@Lou1415926
Copy link
Contributor

Lou1415926 commented May 4, 2021

Hi @srbartlett. Thank you for reaching out for the issue!!

Would you mind giving me more information on what happened? This will help me reproduce the error!

Meanwhile, I've seen this error caused by a malformed addon template. If you have customized your template, you can run aws cloudformation validate-template --template-body file://path/to/your/template.yml (note that file:// is necessary) to see if there is anything wrong with the template?

Related: #2257

@mergify mergify bot closed this as completed in #2270 May 7, 2021
mergify bot pushed a commit that referenced this issue May 7, 2021
…has bad reference (#2270)

fixes #2089, fixes #2257

<!-- Provide summary of changes -->

<!-- Issue number, if available. E.g. "Fixes #31", "Addresses #42, 77" -->

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
@efekarakus
Copy link
Contributor

This is now fixed in v1.7.0!! 🥳 https://github.com/aws/copilot-cli/releases/tag/v1.7.0

@huanjani
Copy link
Contributor

Reopening this, as the underlying cause of this problem was a CFN issue.

@huanjani huanjani reopened this Aug 19, 2021
thrau pushed a commit to localstack/copilot-cli-local that referenced this issue Dec 9, 2022
…has bad reference (aws#2270)

fixes aws#2089, fixes aws#2257

<!-- Provide summary of changes -->

<!-- Issue number, if available. E.g. "Fixes aws#31", "Addresses aws#42, 77" -->

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Issues that are bugs.
Projects
None yet
5 participants