sparse-intern-71089
10/20/2022, 4:28 AMbland-tailor-50336
10/20/2022, 4:29 AMexport interface FargateServiceArgs {
// ...
cluster?: ecs.Cluster;
// ...
}
bland-tailor-50336
10/20/2022, 4:31 AMbland-tailor-50336
10/20/2022, 4:32 AMexport interface FargateServiceArgs {
readonly cluster?: pulumi.Input<string>;
// ...
}
bland-tailor-50336
10/20/2022, 4:32 AMbrainy-church-78120
10/20/2022, 4:33 AMbland-tailor-50336
10/20/2022, 4:35 AM0.40.1
But I just updated to the one linked by the docs page (v1.0.0-beta.7
) and it's still the same issuebland-tailor-50336
10/20/2022, 4:36 AMbland-tailor-50336
10/20/2022, 4:36 AMbland-tailor-50336
10/20/2022, 4:37 AMARN of an ECS cluster.
bland-tailor-50336
10/20/2022, 4:37 AMbland-tailor-50336
10/20/2022, 4:38 AMARN of an ECS cluster
then I could use the string output... unfortunately it is looking for an awsx.ecs.Cluster object as a property on the args parameterbland-tailor-50336
10/20/2022, 1:43 PMbland-tailor-50336
10/20/2022, 2:00 PMmillions-furniture-75402
10/20/2022, 2:08 PMbland-tailor-50336
10/20/2022, 2:09 PMmillions-furniture-75402
10/20/2022, 2:10 PMbland-tailor-50336
10/20/2022, 2:10 PMbland-tailor-50336
10/20/2022, 2:10 PMbland-tailor-50336
10/20/2022, 2:10 PMbland-tailor-50336
10/20/2022, 2:10 PMbland-tailor-50336
10/20/2022, 2:11 PMmillions-furniture-75402
10/20/2022, 2:11 PMbland-tailor-50336
10/20/2022, 2:11 PMbland-tailor-50336
10/20/2022, 2:12 PMbland-tailor-50336
10/20/2022, 2:12 PMbland-tailor-50336
10/20/2022, 2:13 PMbland-tailor-50336
10/20/2022, 2:14 PMmillions-furniture-75402
10/20/2022, 2:14 PMconst cluster = new awsx.ecs.Cluster(`${appName}-cluster`, {
securityGroups: [],
vpc,
});
bland-tailor-50336
10/20/2022, 2:15 PMmillions-furniture-75402
10/20/2022, 2:15 PMbland-tailor-50336
10/20/2022, 2:15 PMmillions-furniture-75402
10/20/2022, 2:15 PM.get()
bland-tailor-50336
10/20/2022, 2:15 PMbland-tailor-50336
10/20/2022, 2:15 PMmillions-furniture-75402
10/20/2022, 2:16 PMbland-tailor-50336
10/20/2022, 2:16 PM.get
?millions-furniture-75402
10/20/2022, 2:16 PMbland-tailor-50336
10/20/2022, 2:17 PMbland-tailor-50336
10/20/2022, 2:17 PMbland-tailor-50336
10/20/2022, 2:17 PMmillions-furniture-75402
10/20/2022, 2:17 PMconst mySg = awsx.ec2.SecurityGroup.fromExistingId(
"my-sg",
mySgId,
{ vpc },
);
millions-furniture-75402
10/20/2022, 2:17 PMmillions-furniture-75402
10/20/2022, 2:18 PMbland-tailor-50336
10/20/2022, 2:18 PMbland-tailor-50336
10/20/2022, 2:18 PMmillions-furniture-75402
10/20/2022, 2:19 PMbland-tailor-50336
10/20/2022, 2:19 PMbland-tailor-50336
10/20/2022, 2:19 PMmillions-furniture-75402
10/20/2022, 2:20 PMmillions-furniture-75402
10/20/2022, 2:20 PMbland-tailor-50336
10/20/2022, 2:20 PMmillions-furniture-75402
10/20/2022, 2:21 PMmillions-furniture-75402
10/20/2022, 2:21 PM.securityGroup
property that is the underlying aws security group created by the aws provider IIRC.bland-tailor-50336
10/20/2022, 2:21 PM.fromExistingId
or .fromExistingARN
should be part of an interface that is implemented by all resourcesbland-tailor-50336
10/20/2022, 2:22 PMbland-tailor-50336
10/20/2022, 2:22 PMmillions-furniture-75402
10/20/2022, 2:22 PMmillions-furniture-75402
10/20/2022, 2:22 PMmillions-furniture-75402
10/20/2022, 2:23 PMbland-tailor-50336
10/20/2022, 2:24 PMmillions-furniture-75402
10/20/2022, 2:27 PMbland-tailor-50336
10/20/2022, 2:28 PMmillions-furniture-75402
10/20/2022, 2:28 PMmillions-furniture-75402
10/20/2022, 3:06 PMmillions-furniture-75402
10/20/2022, 3:06 PMmillions-furniture-75402
10/20/2022, 3:07 PMbland-tailor-50336
10/20/2022, 3:09 PMbland-tailor-50336
10/20/2022, 3:09 PMmillions-furniture-75402
10/20/2022, 3:09 PMbland-tailor-50336
10/20/2022, 3:10 PMmillions-furniture-75402
10/20/2022, 3:10 PM// Create an ECS Cluster
const cluster = new aws.ecs.Cluster("default-cluster");
const service = new awsx.ecs.FargateService("my-service", {
cluster: cluster.arn,
...
});
bland-tailor-50336
10/20/2022, 3:10 PMbland-tailor-50336
10/20/2022, 3:11 PMbland-tailor-50336
10/20/2022, 3:11 PMmillions-furniture-75402
10/20/2022, 3:11 PMbland-tailor-50336
10/20/2022, 3:11 PMmillions-furniture-75402
10/20/2022, 3:12 PMbland-tailor-50336
10/20/2022, 3:12 PMmillions-furniture-75402
10/20/2022, 3:13 PMmillions-furniture-75402
10/20/2022, 3:14 PMmillions-furniture-75402
10/20/2022, 3:14 PMmillions-furniture-75402
10/20/2022, 6:58 PMbland-tailor-50336
10/20/2022, 7:00 PMbland-tailor-50336
10/20/2022, 7:00 PMbland-tailor-50336
10/20/2022, 7:00 PMbland-tailor-50336
10/20/2022, 7:00 PMmillions-furniture-75402
10/20/2022, 7:02 PMbland-tailor-50336
10/20/2022, 7:04 PM