Hello All! I reset my workstation and now I can no longer use Packer with AWS but I can still use Terraform after installing latest of AWS CLI, Packer, Terraform
Using:
Packer v1.8.4
Terraform v1.3.6 on linux_amd64
aws-cli/2.9.4 Python/3.9.11 Linux/6.0.0-5-amd64 exe/x86_64.debian prompt/off
And getting:
$ AWS_PROFILE=aws-sbx packer build aws-debian.pkr.hcl
Error: Datasource.Execute failed: no valid credential sources for found.
Anyone else seeing this new behavior?
I figured out my issue and I do think its a net NEW bug in Packer with the latest AWS CLI SSO setup. When you setup AWS SSO now there is a new sso-session
section that gets setup.
I had to remove all that from the profile I was trying to use and setup the sso_start_url and sso_region directly vs using sso-session stuff.
Interestingly enough I also had to pass AWS_REGION=us-west-2 inline when running packer build as well. Not sure why that is now being ignored as I have it in both [default] and the sso profile in use.