polite-kite-18322
10/26/2021, 12:44 AMpulumi up
with this:
// Connect to an EKS cluster
const clusterState: aws.eks.ClusterState = {
arn: "arn:aws:eks:us-west-2:xxxxxxxxxx:cluster/prod-eks-cluster",
roleArn: "arn:aws:iam::xxxxxxxxxx:role/prod-eks-role"
};
const cluster = aws.eks.Cluster.get("prod-eks-cluster", "arn:aws:eks:us-west-2:xxxxxxxxxx:cluster/prod-eks-cluster", clusterState);
I get this error:
aws:eks:Cluster (prod-eks-cluster):
error: Preview failed: refreshing urn:pulumi:credit-queue-consumer::credit-queue-consumer::aws:eks/cluster:Cluster::prod-eks-cluster: 1 error occurred:
* error reading EKS Cluster (arn:aws:eks:us-west-2:xxxxxxxxxx:cluster/prod-eks-cluster): InvalidParameterException: The name parameter contains invalid characters. It should begin with letter or digit and can have any of the following characters: the set of Unicode letters, digits, hyphens and underscores.
{
RespMetadata: {
StatusCode: 400,
RequestID: "ff224265-9991-4840-9a91-91bd4a010dc1"
},
ClusterName: "arn:aws:eks:us-west-2:xxxxxxxxxx:cluster/prod-eks-cluster",
Message_: "The name parameter contains invalid characters. It should begin with letter or digit and can have any of the following characters: the set of Unicode letters, digits, hyphens and underscores."
}
The documentation for aws.eks.Cluster.get
suggests that id
is the unique provider id of the resource to lookup, but this error response looks like it's being interpreted as the ClusterName
. What format should the id
take?billowy-army-68599
fast-easter-23401
10/26/2021, 3:18 PMpolite-kite-18322
10/26/2021, 6:01 PMaws.eks.Cluster
class is not useful for this?polite-kite-18322
10/26/2021, 6:01 PMbillowy-army-68599
aws.eks.Cluster
resource which is part of the aws provider, but we also have pulumi-eks which will set up all of the nodes and iam roles and provision you a kubeconfigbillowy-army-68599
polite-kite-18322
10/26/2021, 6:03 PMbillowy-army-68599
polite-kite-18322
10/26/2021, 6:59 PM* error reading EKS Cluster (arn:aws:eks:us-west-2:xxxxxxxxxx:cluster/prod-eks-cluster): InvalidParameterException: The name parameter contains invalid characters. It should begin with letter or digit and can have any of the following characters: the set of Unicode letters, digits, hyphens and underscores.
polite-kite-18322
10/26/2021, 7:00 PMpolite-kite-18322
10/26/2021, 9:53 PMpulumi config set kubernetes:context my-context
thanks!