Running Cluster API Provider out-of-cluster does not load AWS Shared Config for some controllers #5117
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-priority
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
/kind bug
What steps did you take and what happened:
Trying to run cluster-api-provider-aws out-of-cluster under a debugging IDE, the AWS Shared Config is partially loaded for some clusters, but for others Reconciler errors occur:
What did you expect to happen:
Shared config is read where the session is created.
Anything else you would like to add:
It appears that all other parts of the codebase pass through SharedConfigEnable (example) however pkg/cloud/scope/session.go#L176 does not.
This can be worked-around by setting the
AWS_SDK_LOAD_CONFIG
environment variable to a truthy value.Environment:
kubectl version
): 1.30/etc/os-release
): macOSThe text was updated successfully, but these errors were encountered: