Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google_container_aws_cluster data resource doesn't exist #20878

Open
jweier opened this issue Jan 10, 2025 · 0 comments
Open

google_container_aws_cluster data resource doesn't exist #20878

jweier opened this issue Jan 10, 2025 · 0 comments

Comments

@jweier
Copy link

jweier commented Jan 10, 2025

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Description

Hi - The google_container_aws_cluster resource in the Google Provider doesn't have a corresponding data resource that allows you to query the resource for information. This presents a problem as I need to dynamically get cluster attributes such as the cluster_ca_certificate. The same resource to create a container cluster on GCP, instead of AWS, (google_container_cluster) has a corresponding data resource which lets you pull the master_auth.0.cluster_ca_certificate attribute for this information.

I've also verified that the information is available via the Google API so this appears to just be a limitation with this resource in the google provider.

New or Affected Resource(s)

  • google_container_aws_cluster

Potential Terraform Configuration

data "google_container_aws_cluster" "this" {
  name = var.gke_cluster_name
  location = var.gke_cluster_location
}

provider "kubernetes" {
  host = data.google_container_aws_cluster.endpoint
  cluster_ca_certificate = data.google_container_aws_cluster.master_auth.0.cluster_ca_certificate
  ...
}

References

No response

b/389666810

@github-actions github-actions bot added forward/review In review; remove label to forward service/gkemulticloud labels Jan 10, 2025
@BBBmau BBBmau added new-data-source size/s and removed forward/review In review; remove label to forward labels Jan 13, 2025
@BBBmau BBBmau added this to the Goals milestone Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants