sparse-intern-71089
11/09/2018, 9:08 PMwhite-balloon-205
cloud.Task, but you need to set some configuration to indicate you want to use an existing Cluster instead of creating a new one. cloud-aws:ecsClusterARN is the main setting, but there are a couple others you may need to provide. See https://pulumi.io/quickstart/cloudfx/index.html.
Alternatively, you can use new aws.ecs.TaskDefinition and then runTask from the Node.js aws-sdk at runtime to do this directly using AWS APIs.hundreds-musician-51496
11/09/2018, 9:12 PMhundreds-musician-51496
11/09/2018, 9:15 PMcloud.Task and saw it was using the node SDK - how does it distinguish preview mode from non-preview?hundreds-musician-51496
11/09/2018, 9:20 PMComponentResource and implment an async run method? https://github.com/pulumi/pulumi-cloud/blob/master/aws/service.ts#L883