Similarly to aws_region, I'd like to be able to dynamically retrieve the AWS CLI profile being in use.
My use case is a module that creates an aws_eks_cluster, which has an additional block provisioning the local .kube/config file - it requires specifying the profile and currently uses a variable that needs to be passed through to the module:
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Description
Similarly to
aws_region
, I'd like to be able to dynamically retrieve the AWS CLI profile being in use.My use case is a module that creates an
aws_eks_cluster
, which has an additional block provisioning the local.kube/config
file - it requires specifying the profile and currently uses a variable that needs to be passed through to the module:Requested Resource(s) and/or Data Source(s)
Potential Terraform Configuration
References
https://github.com/awsdocs/aws-cli-user-guide/blob/main/doc_source/cli-configure-profiles.md
Would you like to implement a fix?
None