gentle-market-22852
08/18/2022, 11:57 AMpackage com.tejasoft.devops.iac.pulumi.aws;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.eks.Cluster;
public final class AWSEKSPulumiApp
{
public static void main(final String[] aArgs) {
Pulumi.run(AWSEKSPulumiApp::stack);
}
private static void stack(final Context aContext) {
final var cluster = new Cluster("eks-cluster");
aContext.export("kubeconfig", cluster.kubeconfig());
}
}
when this is executed the command
pulumi stack output
gives out put as Current stack outputs (0):
No output values currently in this stack
echoing-dinner-19531
08/18/2022, 12:21 PMpulumi up
first?gentle-market-22852
08/18/2022, 12:23 PMechoing-dinner-19531
08/18/2022, 12:38 PMup
?gentle-market-22852
08/18/2022, 1:01 PMechoing-dinner-19531
08/18/2022, 3:01 PMgentle-market-22852
08/19/2022, 2:31 AMechoing-dinner-19531
08/19/2022, 1:56 PMfor the same code, aws does show i.e. it is activeSure because it got far enough to create the cluster, but the program error'd out before it could export its outputs.
also, another question is how to choose pulumi to fire latest eks as I do see notification there is a higher verstionI think it will use the highest version on creation, but it won't automatically update it for you. You need to set the version property to tell it to update.