polite-helicopter-45187
01/12/2024, 3:32 PMcool-scientist-53915
01/12/2024, 5:59 PMlet instance = await aws.ec2.getInstance({ instanceId: id });
And then look at instance.instanceState
. After that equals "running", I use a pulumi remote Command
that executes timeout 15m cloud-init status --wait
to ensure that the instance is fully booted and done with running any init scripts. Then any later commands/file copies simply have a dependency on the Command
that waits for cloud-init to be done.polite-helicopter-45187
01/12/2024, 7:46 PMproud-twilight-52651
01/13/2024, 5:11 AM