You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Overview of the Issue
I try to secure my packer build by setting temporary_security_group_source_cidrs but don't get it working.
OS, Architecture, and any other information you can provide about the
environment.
Log Fragments and crash.log files
amazon-ebs: output will be in this color.
==> amazon-ebs: Prevalidating any provided VPC information
==> amazon-ebs: Prevalidating AMI Name: amazon-eks-node-1.25-1701774898
amazon-ebs: Found Image ID: ami-03c7889efe89e1eeb
==> amazon-ebs: Creating temporary keypair: packer_656f06
==> amazon-ebs: Creating temporary security group for this instance: packer_656f06[34]c89b-813d-9786-0d12937acf83
==> amazon-ebs: Authorizing access to port 22 from [0.0.0.0/0] in the temporary security groups...
The build finishs successful but the custom temporary_security_group_source_cidrs seems not to be used. Is this a bug or do I have an issue in my configuration...
The text was updated successfully, but these errors were encountered:
Thanks for reporting this, since this concerns the Amazon plugin, I'll transfer it over there.
Unfortunately, I can't promise we'll fix this soon as we have other priorities on hand, but we do welcome contributions if you're up for it, we can help if need be, and will happily review!
I think the value is not correctly mapped/parsed from the config and then overwritten here:
So the length at this point seems to be 0. Do you have an example how the temporary_security_group_source_cidrs must set in the config? Are there any possibilities to debug/run the code locally without having access to an AWS account?
Community Note
Overview of the Issue
I try to secure my packer build by setting
temporary_security_group_source_cidrs
but don't get it working.Reproduction Steps
I use the packer template below.
And I have the following user configuration:
Packer version
From
packer version
v1.9.5Simplified Packer Template
Operating system and Environment details
OS, Architecture, and any other information you can provide about the
environment.
Log Fragments and crash.log files
The build finishs successful but the custom
temporary_security_group_source_cidrs
seems not to be used. Is this a bug or do I have an issue in my configuration...The text was updated successfully, but these errors were encountered: