quiet-painter-30539
02/18/2020, 5:46 PM#1
self.my_cluster = eks.Cluster(self.my_name,
name = self.my_name,
role_arn = self.my_role.arn,
vpc_config = self.my_vpc_config,
tags = self.my_eks_tags)
... EKS gets created just fine and EKS creates a security group which it adds into self.my_cluster.vpc_config dict. So far so good.
I have now EKS and if I add some new piece of code (#2):
#2
self.my_cluster.vpc_config["clusterSecurityGroupId"]
... I can access that security group.
But the problem is here. If I try to create EKS (#1) and access that security group value (#2) in the same "pulumi up" run I get an error:
KeyError: 'clusterSecurityGroupId'
How do I access that security group id since I need it in later steps?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by