https://pulumi.com logo
#general
Title
# general
a

ambitious-thailand-9777

09/21/2023, 7:41 AM
Hi All How can I create a GKE cluster and register it on Anthos using pulumi python? Using gcp.container.cluster provisions a GKE cluster but does not attach it to anthos automatically. Are there any anthos specific configs in gcp,container.cluster module that does this registration? Thanks & Kind Regards
d

dry-keyboard-94795

09/21/2023, 7:56 AM
Anthos is under the
gkehub
module, believe you need the Membership resource: https://www.pulumi.com/registry/packages/gcp/api-docs/gkehub/membership/
Gcp often providers reference terraform code in their guides, which can serve as reference for the Pulumi equivalent
a

ambitious-thailand-9777

09/21/2023, 7:59 AM
Thanks for the quick response. I will check it out.
Thanks @dry-keyboard-94795. It worked...