Skip to content

fix(eks): support an optional aws_profile for the kubernetes provider exec plugin - #471

Merged
sebastiancorrea81 merged 3 commits into
mainfrom
fix/eks-kubernetes-provider-aws-profile
Aug 7, 2026
Merged

fix(eks): support an optional aws_profile for the kubernetes provider exec plugin#471
sebastiancorrea81 merged 3 commits into
mainfrom
fix/eks-kubernetes-provider-aws-profile

Conversation

@sebastiancorrea81

Copy link
Copy Markdown
Collaborator

Summary

  • The kubernetes provider's exec plugin (aws eks get-token) had no way to select an AWS CLI profile, so it silently fell back to the default credential chain.
  • Consumers with named profiles had to export AWS_PROFILE in their shell before running tofu/terraform, with no way to express it in code.
  • Adds an optional aws_profile variable (default "", backward compatible) and threads it into the exec args via the same concat(cond ? [...] : [], [...]) pattern already used elsewhere in this repo.

Test plan

  • Verified with a local wrapper around the aws binary that --profile <value> is now present in the actual exec invocation argv, with AWS_PROFILE unset in the shell.
  • tofu plan against a real cluster (this module vendored locally) shows no unexpected diff — only pre-existing addon-version drift unrelated to this change.

sebas_correa and others added 3 commits August 5, 2026 13:25
… exec plugin

The kubernetes provider's exec plugin (`aws eks get-token`) had no way to
select an AWS CLI profile, so it silently fell back to the default
credential chain. Consumers with named profiles had to export AWS_PROFILE
in their shell before running tofu, with no way to express it in code.

Adds an optional aws_profile variable (default "") and threads it into
the exec args, matching the pattern already used for the "aws" provider
in this same module.
@sebastiancorrea81
sebastiancorrea81 merged commit ccb2f5f into main Aug 7, 2026
43 checks passed
@sebastiancorrea81
sebastiancorrea81 deleted the fix/eks-kubernetes-provider-aws-profile branch August 7, 2026 17:44
sebastiancorrea81 added a commit that referenced this pull request Aug 7, 2026
🤖 I have created a release *beep* *boop*
---


##
[6.10.0](v6.9.0...v6.10.0)
(2026-08-07)


### Features

* **service_definition:** forward link spec fields from the template
([#477](#477))
([2994e6b](2994e6b))


### Bug Fixes

* **ci:** compare release PR author against REST-style bot login
([4e00860](4e00860))
* **ci:** compare release PR author against REST-style bot login
([#481](#481))
([75a16ea](75a16ea))
* **ci:** trigger release PR auto-merge via workflow_run instead of
pull_request
([e7eff48](e7eff48))
* **ci:** trigger release PR auto-merge via workflow_run instead of
pull_request
([#479](#479))
([80738de](80738de))
* **eks:** support an optional aws_profile for the kubernetes provider
exec plugin
([#471](#471))
([ccb2f5f](ccb2f5f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant