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

Convert numbers to strings #390

Closed
matrinox opened this issue Jun 4, 2018 · 2 comments
Closed

Convert numbers to strings #390

matrinox opened this issue Jun 4, 2018 · 2 comments

Comments

@matrinox
Copy link
Contributor

matrinox commented Jun 4, 2018

Even though CFN only accepts strings, it would be nice if Sceptre can support numbers in config files to create the illusion that it does. See similar ansible issue: ansible/ansible#25013

Example config:

parameters:
  Port: 3000
  RuleNumber: 500

The workaround is to add quotes but it's just a bit awkward. Plus, you don't get to write the numbers with underscores as commas: e.g. 65_535.

@nabeelamjad
Copy link
Contributor

nabeelamjad commented Jun 4, 2018

We'll need to have a look (just to make sure parameters indeed is only used for CFN and has to be a string). This is currently happening because YAML automatically casts certain data types.

@zaro0508
Copy link
Contributor

zaro0508 commented Feb 5, 2022

Looks like this is a won't do. I have proposed an alternative idea to help with this in #925

@zaro0508 zaro0508 closed this as completed Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants