Packer’s documentation claims that it is possible to restrict/limit the SecurityGroups that Packer can use, by taking advantage of the
packer prefix of the SecurityGroupName. I do not see how to do this, since IAM only allows you to restrict based on the SecurityGroupId, not the SecurityGroupName.
https://packer.io/docs/builders/amazon-ebs.html (search for “prefix packer” in the page)
Any help would be appreciated. Thank you,