Closed onwsk8r closed 6 years ago
thanks for the report! sorry about that.
I think I see where the issue is... https://github.com/hashicorp/packer/blob/0fbbdc2ea3038e9f77cb3f35af8b5f4377346293/builder/amazon/common/access_config.go#L39-L47
It only configures the region is there's not a profile set. I guess the reasoning was that region would come from the profile, not the packer config, but that's obviously insufficient.
The most expedient way to fix this would be to add the region to the profile. We'll think of a good solution in the meantime. Probably to just always set the region if it appears in the config, but need to investigate how that interacts if the profile config has a region
Thanks for the report @onwsk8r. I also confirmed unintentionally via #5668
Yeah, with any luck you can change the first else if
to anif
.
I'll put a reminder for myself to monitor this thread and if you haven't gotten it knocked out by the weekend I'll try to make a PR by the end of the weekend. I'm super busy right now but the end is clearly in sight because I have Terraform and Packer so I can move pretty quick- you guys rock!
was able to play with the change a bit and I'm comfortable that it works as expected. Will be in the next release
Hello @mwhooker is this patched in 1.1.3
? Any eta on when this fix will be published?
@nodesocket yes it's in the release. are you having problems with it?
@mwhooker thanks 1.1.3
fixed it.
Is the region then correctly available in a user variable so that it can be used in provisioners?
:-/ sorry I don't understand your question @mcqj but if you have usage questions, can I direct you to the user group at https://groups.google.com/forum/#!forum/packer-tool? This is a closed ticket so there won't be a lot of eyes on your question here.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
This makes it a bit tough to build amis in multiple regions.
Host Platform: Arch Linux
Steps to reproduce: ~/.aws/credentials:
packer.json:
Debug log: