Skip to content

Using AWS enviornment variables error out on upload #461

@kdvalin

Description

@kdvalin

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)

Metadata

Metadata

Assignees

Labels

🐞 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions