delightful-flag-25944
03/01/2024, 3:40 PMconst eksCluster = eks.Cluster.get("eksCluster", clusterName);
but I am getting Property get does not exist on type typeof Cluster
. This is my import import * as eks from "@Pulumi Team/eks";
delightful-flag-25944
03/01/2024, 4:07 PMexport const oidcProviderUrl = cluster.core.oidcProvider.url.apply(url => url);
export const oidcProviderArn = cluster.core.oidcProvider?.arn.apply(arn => arn);
but I get
warning: Undefined value (oidcProviderUrl) will not show as a stack output.
warning: Undefined value (oidcProviderARN) will not show as a stack output.
salmon-account-74572
03/01/2024, 4:56 PMcuddly-computer-18851
03/03/2024, 12:35 AMcuddly-computer-18851
03/03/2024, 12:35 AMdelightful-flag-25944
03/03/2024, 2:41 PMdelightful-flag-25944
03/03/2024, 2:42 PMconst vpcStack = new pulumi.StackReference(`codefly/vpc/${currentStackName}`);
const vpcId = vpcStack.getOutput("vpcId");
const publicSubnetIds = vpcStack.getOutput("publicSubnetIds");
const privateSubnetIds = vpcStack.getOutput("privateSubnetIds");
// Create a small EKS cluster
const cluster = new eks.Cluster(`${resourcePrefix}-cluster`, {
// Use the smallest possible instance type and desired capacity for cost efficiency
name: `${resourcePrefix}-cluster`,
instanceType: "t3.small",
desiredCapacity: 2,
minSize: 1,
maxSize: 2,
vpcId: vpcId,
// It's recommended to place node groups in private subnets
privateSubnetIds: privateSubnetIds,
// Optional: specify public subnets for the cluster API server endpoint
publicSubnetIds: publicSubnetIds,
// Other configurations
version: "1.29",
nodeRootVolumeSize: 10, // 10 GB root volume size for each worker node
});
and it gave me an OIDC.salmon-account-74572
03/04/2024, 3:32 PMdelightful-flag-25944
03/06/2024, 2:09 PM