hashicorp / hashicorp/packer-plugin-amazon

temporary_security_group_source_cidrs passing Variable issue

Open
#114 1 comment 1 reaction 0 assignees View on GitHub
question
Dominant language
Go
Stars
91
Forks
141
Avg merge
2d 18h
Merged PRs (30d)
3

Description

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 ` work as expected.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.