https://pulumi.com logo
b

busy-air-16359

05/17/2019, 12:33 PM
I found
aws.eks.Cluster
which lets me configure
endpointPrivateAccess
and
endpointPublicAccess
but it seems to be a low level API and I’m not finding anyone using it
r

rapid-eye-32575

05/17/2019, 1:45 PM
when creating a Cluster with
new eks.Cluster(...)
,
endpointPublicAccess
is per default
true
. Therefore you can access the k8s API server from anywehre (See https://www.terraform.io/docs/providers/aws/r/eks_cluster.html#vpc_config)
I don't think you can change this parameter when creating a "highlevel" cluster resource however
But what happens if you just adjust the value after creating the highlevel resource? I.e.
Copy code
const cluster = new eks.Cluster(...);
cluster.eksCluster.endpointPrivateAccess = true;
cluster.eksCluster.endpointPublicAccess = false;
w

white-balloon-205

05/17/2019, 2:01 PM
This is not supported by the
pulumi-eks
package yet. See https://github.com/pulumi/pulumi-eks/issues/86 (and give it a thumbs up!). PRs also welcome (this one should be very simple).
b

busy-air-16359

05/19/2019, 5:55 PM
Thank you both
Somehow I missed the issue when searching