terraform-aws-eks icon indicating copy to clipboard operation
terraform-aws-eks copied to clipboard

add datasource for aws eks describe-addon-versions

Open awoimbee opened this issue 3 years ago β€’ 3 comments

Relates to: https://github.com/terraform-aws-modules/terraform-aws-eks/issues/1385#issuecomment-990100231

Is your request related to a problem? Please describe.

I manage kubernetes clusters, some deployments like kube-proxy are (strangely) not managed by EKS by default. Like, come on ! I got informed of the issue by AlertManager !

Turns out Terraform has aws_eks_addon, but I need to give this resource addon_version, which I don't want to do, I just want the addon version to match the kubernetes version.

Describe the solution you'd like.

A datasource called something like aws_describe_addon_versions so I don't have to call the aws cli (aws eks describe-addon-versions --addon-name kube-proxy --query 'addons[*].addonVersions[0].addonVersion'). And / or I would like the ability to set addon_version = "latest" in aws_eks_addon.

Describe alternatives you've considered.

Call the aws cli (aws eks describe-addon-versions --addon-name kube-proxy --query 'addons[*].addonVersions[0].addonVersion')

EDIT: I'm so sorry, I didn't see I was on terraform-aws-modules/terraform-aws-eks and not hashicorp/terraform-provider-aws, I guess this issue is still relevant to this project, but feel free to close.

awoimbee avatar Mar 01 '22 10:03 awoimbee

Requires upstream provider support https://github.com/hashicorp/terraform-provider-aws/issues/20725

bryantbiggs avatar Mar 01 '22 12:03 bryantbiggs

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] avatar Apr 01 '22 00:04 github-actions[bot]

This is a breaking change due to requiring the v4.x of the AWS provider and is scheduled for the v19.x release https://github.com/terraform-aws-modules/terraform-aws-eks/compare/master...bryantbiggs:refactor/incorporate-autoscaling-module?expand=1

bryantbiggs avatar Apr 13 '22 19:04 bryantbiggs

This issue has been resolved in version 19.0.0 :tada:

antonbabenko avatar Dec 05 '22 21:12 antonbabenko

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

github-actions[bot] avatar Jan 05 '23 02:01 github-actions[bot]