famous-holiday-93512
12/19/2024, 11:39 AMclusterTags
to existing EKS cluster, does someone have a hint?quick-house-41860
12/20/2024, 9:23 AMpulumi-eks
, the tags you set in clusterTags
should get applied to the underlying EKS cluster resource no matter if you're creating a new cluster or updating an existing oneclean-tiger-72774
12/24/2024, 7:35 AMpulumi_aws
package already instead?quick-house-41860
12/24/2024, 8:16 AMclean-tiger-72774
12/24/2024, 8:38 AMpulumi_aws.eks.Cluster
, which we obtained in our Pulumi script using the .get(...) method. We want to add a tag to the EKS cluster for our Karpenter deployment. I've already found out that we have cluster.tags
, but changing this using cluster.tags.apply(lambda tags: tags.update({"testMe": "testMe"}))
only changes the Pulumi state & not the tags on the actual cluster.clean-tiger-72774
12/24/2024, 8:41 AMpulumi_aws.ec2.Tag
class & we were wondering if something similar can be accomplished but for EKS clusters 🙂quick-house-41860
12/24/2024, 8:48 AMTag
resource for EKS 😞 One option that I can think of is using the command provider to execute an aws cli script.
Resources retrieved with .get
will never be updated/deleted during an update. It's just used for fetching the resource's attributesclean-tiger-72774
12/24/2024, 8:49 AMquick-house-41860
12/24/2024, 9:23 AMclean-tiger-72774
12/24/2024, 2:40 PMCommand
class could be used to manage the lifecycle of a tag object, so indeed I ended up using a dynamic resource & resource provider that just calls the AWS CLI to create, get (with some jq parsing) & delete the resource 🙂