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

temporary_security_group_source_cidrs passing Variable issue #114

Open
ciberesponce opened this issue Jul 23, 2021 · 1 comment
Open

temporary_security_group_source_cidrs passing Variable issue #114

ciberesponce opened this issue Jul 23, 2021 · 1 comment
Labels

Comments

@ciberesponce
Copy link

Having three different outcomes which would be expected to drive the same outcome:

  1. Hardcoding temporary_security_group_source_cidrs
  2. Using a variable-- packer validate .
  3. Using a variable-- packer build

When hard coding the CIDR, this works.

However, one would want to tie this to an environmental variable (type string). When doing this, you would validate this: packer build . This passes.

However, on the same file, `packer build ' will fail on the same file, throwing an error:
"Error parsing CIDR in temporary_security_group_source_cidrs: invalid CIDR address: "72.X.Y.Z/32"

What is weird is, if you copy and paste this string (72.X.Y.Z/32) this works; both packer build . and packer build <file> work as expected.

@azr azr added the question label Aug 18, 2021
@steffakasid
Copy link

Looka like I'm having the same issue: #439 @ciberesponce did you solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants