This message was deleted.
# getting-started
s
This message was deleted.
l
Clusters are unrelated to subnets. Where are you trying to declare subnets?
b
I'm using the pulumi documents to build it and they have a subnets key in there let me show you the code
Copy code
my_HNO_cluster = aws.ecs.Cluster("my_HNO_cluster")
my_HNO_cluster = my_HNO_cluster.arn
network_configuration = aws.ecs.ServiceNetworkConfigurationArgs(
		subnets= priv_subnets,
		subnets= pub_subnets,
		security_groups = [sg.id],
),
desired_count = 1
it builds completely without the second subnets key
l
Ah. You can't use the same key twice. Just create a collection with the contents of both priv_subnets and pub_subnets.
b
that's the part of this I don't know how to do, I'm very new to Pulumi and just kinda stumbling through documentation to do this
l
This is unrelated to Pulumi. It's just Python. Use "+".
b
o ok I thought it was Pulumi specific
l
Concatenating collections is normal Python stuff.
b
subnets takes a list:
Copy code
subnets=[]
So instead of defining subnets twice:
Copy code
subnets=
subnets=
just do
Copy code
subnets= priv_subnets + pub_subnets
💯 1
b
awesome thank you
I'm still figuring out where python ends and Pulumi starts in some cases.
l
Ask any time! You may also want to check out #CDE799L1M for language-specific help.
b
thank you and thank you for the help. I've been a sys admin for 15yrs and never touched automation so trying to move into DevOps has been enlightening this stuff is so much fun and just fascinating it's like a whole new world to me
b
we’re here to help! if it’s any comfort, I was a sysadmin for 15 years and now I write pulumi all day 🙂
b
nice well I hope one day to be where you are. I did a little terraform before this and Pulumi just seems to be lightyears ahead of it
l
I've been a dev for 30 years and you are right. Pulumi is lightyears ahead.
(high five @billowy-army-68599)
b
every time I was manic I wanted to learn coding and I would get into it for about 2wks and then drop it when the novelty wore off. I think that's the draw to devops for me is that there's so much coding and I'm still not great at it but now that I'm mostly unfucked mentally I've really been enjoying writing code.
🙌 2