gruntwork-io / boilerplate

A tool for generating files and folders ("boilerplate") from a set of templates
https://www.gruntwork.io
Mozilla Public License 2.0
157 stars 12 forks source link

can't handle the number (such as account id) as string in variable #154

Closed ozbillwang closed 5 months ago

ozbillwang commented 5 months ago

Describe the bug Dealing with numbers, especially AWS account IDs that start with '0,' can be challenging when stored as strings in variables.

To Reproduce

$ boilerplate --template-url ./template --output-folder output --non-interactive \
        --var accountName=dev01-nonprod --var accountId=034546458970

ERROR: Value '3.454645897e+10' is not a valid value for variable 'accountId' with type 'string'.

Show the boilerplate.yml for your reference

$ more template_budget/boilerplate.yml

variables:
  - name: accountName
    type: string
  - name: accountId
    type: string
ozbillwang commented 5 months ago

similar to #137