https://pulumi.com logo
#python
Title
# python
e

early-musician-41645

10/25/2018, 7:03 PM
What's wrong with this syntax?
Copy code
eks_cluster_security_group = ec2.SecurityGroup(environment+"-eks-cluster-sg",
    description="EKS cluster communication with worker nodes"
    egress=[
        { 'protocol': '-1', 'from_port': 0, 'to_port': 0, 'cidr_blocks': ['0.0.0.0/0'] }
    ])
Copy code
File "/home/tsi.lan/eshamay/git/mustang/sdp-mustang-terraform/pulumi/vnext-poc/__main__.py", line 33
        egress=[
             ^
    SyntaxError: invalid syntax
i

incalculable-sundown-82514

10/25/2018, 7:03 PM
You need a comma after the “description=” keyword argument
e

early-musician-41645

10/25/2018, 7:03 PM
darn, I'm feeling like quite the newb today!
I thought it was something deeper
thanks!
i

incalculable-sundown-82514

10/25/2018, 7:04 PM
no worries! 😄