-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Description
When specifying AWS credentials using environment variables (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY), which is common in CI/CD pipeline scenarios, the following error is printed when uploading a built image.
error: failed to get shared config profile, default
Analysis
This seems like an issue with a default AWS profile being provided via the osbuild/images dependency (I think this is the relevant PR). The AWS subsystem looks for the default profile, finds none (since everything is provided via environment variables) and then errors out.
Affected versions
I've seen this on the container version, which seems to be ghcr.io/osbuild/image-builder-cli:sha-582c4de19642f8c8f18d170c8a0ec4ba5366a76c.
Workarounds
Use an older version of image-builder-cli (ghcr.io/osbuild/image-builder-cli:sha-47cf210640f187c730915b1918aeb10068c9b7a2 and earlier)