https://pulumi.com logo
Title
w

worried-queen-62794

10/11/2020, 10:26 PM
When a resource depends on an EC2 resource I'm guessing it only waits for it to be created and not be in the
Running
state? If so how can I make it wait?
l

little-cartoon-10569

10/11/2020, 10:41 PM
You'd probably need to use the SDK for that, not Pulumi, I think...
What would be dependent on it being in running state? AWS already looks after this for some resources, like SSM documents...
w

worried-queen-62794

10/11/2020, 10:53 PM
Being able to SSH to the instance to do stuff. I think you are right in that using AWS Systems Manager might be a better idea. I hadn't used it until last night so not too sure what it can do. What I am trying to do is use an ED25519 SSH key with my instance but the AWS API only supports RSA which is really annoying.
l

little-cartoon-10569

10/11/2020, 10:58 PM
I think I'd rely on the SDK for waiting until SSH is ready. Possibly in conjunction with automation-api, if you wanted Pulumi to do more stuff after SSH is available. SSM is more powerful than I realized until today (I've only been using command documents, the automation documents are looking good right now), so if whatever you want SSH for can be done via sh / powershell, then SSM might be a better way to go.
b

billowy-army-68599

10/11/2020, 11:45 PM
@worried-queen-62794 which SDK/language are you using?
w

worried-queen-62794

10/11/2020, 11:46 PM
Python
b

billowy-army-68599

10/11/2020, 11:46 PM
w

worried-queen-62794

10/12/2020, 1:00 AM
Yep that's what I started off using.