https://pulumi.com logo
Title
p

purple-plumber-90981

04/28/2021, 7:02 AM
and in an aws eks cluster creation like :
eks_cluster = aws.eks.Cluster("my-eks-cluster", opts=eks_opts, **eks_cluster_config)
how would i achieve a cluster called “my-eks-cluster” rather than “my-eks-cluster-3ef8ab7” ?
b

billowy-army-68599

04/28/2021, 2:46 PM
Hey Brett. John answered this below, but we have an FAQ on this as well: https://www.pulumi.com/docs/troubleshooting/faq/#why-do-resource-names-have-random-hex-character-suffixes
p

purple-plumber-90981

05/03/2021, 11:32 PM
i solved like :-
# create cluster resource
    eks_cluster_config['name'] = "itplat-eks-cluster"
    eks_cluster = aws.eks.Cluster("itplat-eks-cluster", opts=provider_opts, **eks_cluster_config)