quiet-painter-30539
02/19/2020, 1:16 PMlimited-rainbow-51650
02/19/2020, 1:20 PMquiet-painter-30539
02/19/2020, 1:51 PMlimited-rainbow-51650
02/19/2020, 1:53 PMquiet-painter-30539
02/19/2020, 2:04 PMeks.3
create a cluster security group as part of cluster creation"limited-rainbow-51650
02/19/2020, 2:06 PMquiet-painter-30539
02/19/2020, 2:06 PMlimited-rainbow-51650
02/19/2020, 2:07 PM@pulumi/aws
or @pulumi/eks
to create the cluster?quiet-painter-30539
02/19/2020, 2:08 PMlimited-rainbow-51650
02/19/2020, 2:15 PMOutput
of my_cluster, so referring to vpc_config should (in Pulumi) style wait for the value(s) to be there before it continues execution. I haven’t used Python with Pulumi. Is it possible to also use the dotted notation to refer to clusterSecurityGroupId? Example: my_cluster.vpc_config.clusterSecurityGroupId
?quiet-painter-30539
02/19/2020, 2:33 PMlimited-rainbow-51650
02/19/2020, 2:38 PMquiet-painter-30539
02/19/2020, 2:41 PMfaint-table-42725
02/21/2020, 2:02 AMmy_cluster.vpc_config.clusterSecurityGroupId
you’ll want to try my_cluster.vpc_config['clusterSecurityGroupId']
quiet-painter-30539
02/21/2020, 9:01 AMmy_cluster.vpc_config['clusterSecurityGroupId']
in the same "pulumi up" run you will notice that the security group (that EKS creates) is not yet ready and pulumi will throw
KeyError: 'clusterSecurityGroupId'
faint-table-42725
02/22/2020, 12:53 AMmy_cluster.vpc_config.apply(*lambda* config: config['clusterSecurityGroupId'])
quiet-painter-30539
02/22/2020, 10:50 AMmy_cluster.vpc_config.apply(*lambda* config: config['clusterSecurityGroupId'])
security group id as source_security_group_id for another resource). In the second "pulumi up" run Pulumi creates the EKS node_group for EKS and also the missing security rule (now that EKS has created that Master plane security group id in the first run). That's ok now (even though it would be nice to have all these resources to be created in one "pulumi up" run, but this is behavior I have seen also in the Terraform side, so I guess there always are peculiarities like this when creating cloud resources.
Thanks for your help, I'm satisfied with this now.faint-table-42725
02/22/2020, 4:04 PM