crooked-knife-92853
03/03/2020, 5:20 PMimport
syntax as I have for other resources.@pulumi/eks
instead of the @pulumi/aws
module.
const existingEksCluster = aws.eks.getCluster({ name: clusterName });
new aws.eks.Cluster(
clusterName,
{
roleArn: existingEksCluster.roleArn,
enabledClusterLogTypes: existingEksCluster.enabledClusterLogTypes,
vpcConfig: {
subnetIds: existingEksCluster.vpcConfig.subnetIds,
securityGroupIds: existingEksCluster.vpcConfig.securityGroupIds,
endpointPrivateAccess: existingEksCluster.vpcConfig.endpointPrivateAccess,
endpointPublicAccess: existingEksCluster.vpcConfig.endpointPublicAccess,
},
},
{ import: existingEksCluster.id },
);