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
Can't use number parameters in addon templates and pass them to integer fields with !Ref #1565
Labels
type/bug
Issues that are bugs.
Projects
Comments
Heya @Envek ! Like you pointed out this is an underlying issue with the goformation library that we use :( we have a backlog item to write our own custom logic to avoid these errors. Sorry about the inconvenience! |
Related #1402 |
efekarakus
added a commit
to efekarakus/copilot-cli
that referenced
this issue
Jan 4, 2021
Fixes aws#1565 Also removes the goformation library in favor of the official YAML library for Go. By using the yaml library, we get two additional benefits: - Gets rid of a parsing bug from the goformation lib aws#1402. - Reduces our binary size by 9MB. Before: ``` ls -lh bin/local 56M copilot ``` After: ``` ls -lh bin/local 47M copilot ```
mergify bot
pushed a commit
that referenced
this issue
Jan 6, 2021
) Fixes #1565 Also removes the goformation library in favor of the official YAML library for Go. By using the yaml library, we get two additional benefits: - Gets rid of a parsing bug from the goformation lib #1402. - Reduces our binary size by 9MB. Before: ``` ls -lh bin/local 56M copilot ``` After: ``` ls -lh bin/local 47M copilot ``` _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
This was released just now in v1.1.0: https://github.com/aws/copilot-cli/releases/tag/v1.1.0! |
thrau
pushed a commit
to localstack/copilot-cli-local
that referenced
this issue
Dec 9, 2022
…s#1804) Fixes aws#1565 Also removes the goformation library in favor of the official YAML library for Go. By using the yaml library, we get two additional benefits: - Gets rid of a parsing bug from the goformation lib aws#1402. - Reduces our binary size by 9MB. Before: ``` ls -lh bin/local 56M copilot ``` After: ``` ls -lh bin/local 47M copilot ``` _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
If I specify parameter of type
Number
in addon template and use it with!Ref
in a field that requires integer,copilot deploy
will fail:It is convenient to use parameters to DRY values in templates and keep them app configuration in sync with infrastructure:
But if I execute this template with
aws cloudformation create-stack
it will be created successfully.Related issues (as copilot use goformation): awslabs/goformation#252 and awslabs/goformation#304.
Full example here
copilot/app/addons/ingress-rules.yml
:How to run it via CloudFormation:
The text was updated successfully, but these errors were encountered: