Hello everyone. New to Pulumi, using Python, AWS. ...
# getting-started
l
Hello everyone. New to Pulumi, using Python, AWS. Is there a way to get Pulumi to update resources just created? eg once an EKS cluster has been created I need to update the AWS CNI plugin version before doing other stuff, the equivalent of running "k apply -f https://raw.githubusercontent.com/aws/amazon-vpc-cni-k8s/master/config/master/aws-k8s-cni.yaml" . Or is there a way to specify the VPC CNI plugin version to use when creating the cluster?
s
There's a couple ways to do this: 1. Use the
aws.eks.Addon
resource: https://www.pulumi.com/registry/packages/aws/api-docs/eks/addon/ 2. Deploy an arbitrary K8s manifest using `kubernetes.yaml.ConfigFile`: https://www.pulumi.com/registry/packages/kubernetes/api-docs/yaml/configfile/
The Kubernetes provider also has resources for CRDs etc. if you would rather write your K8s stuff in Python instead of YAML: https://www.pulumi.com/registry/packages/kubernetes/api-docs/apiextensions/v1/customresourcedefinition/
l
Great. I used local.command to kubectl apply the yaml as config file tries to create the resources. But aws.eks.Addon looks better. Thank you!