hundreds-musician-51496
11/09/2018, 9:08 PMTask
class works for me as AFAICT it wants to create a clusterwhite-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 PMcloud.Task
and saw it was using the node SDK - how does it distinguish preview mode from non-preview?ComponentResource
and implment an async run
method? https://github.com/pulumi/pulumi-cloud/blob/master/aws/service.ts#L883