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

elegant-dusk-37631

04/24/2020, 6:50 AM
Hi! Any tips on how to supply userData to AWS ECS instances? I've got ecsCluster.createAutoScalingGroup() and when I pass userData in the launchConfiguration, the original ECS-specific userData is lost and my cluster doesn't start
w

white-balloon-205

04/25/2020, 5:06 PM
Is this specifically about using the
awsx
library? How are you passing the custom usersata? I believe the awsx library provides a way to include custom runcmd and bootcmd sections but still keep all the ECS defaults - see https://github.com/pulumi/pulumi-awsx/blob/master/nodejs/awsx/autoscaling/launchConfiguration.ts#L421.
a

able-zoo-58396

05/03/2020, 12:50 AM
@white-balloon-205 or @elegant-dusk-37631 - I'm stuck on the same thing. Looking for a little more clarity. I see that I can add a new autoscaling group to a cluster, but is there some way to just pass
extraRuncmdLines
directly to a cluster? I don't see that option exposed in any
awsx
arguments object. In my case, I'm trying to install a docker plugin at the time of creating the new EC2 instances.