bland-tailor-50336
10/20/2022, 4:28 AMexport interface FargateServiceArgs {
// ...
cluster?: ecs.Cluster;
// ...
}
export interface FargateServiceArgs {
readonly cluster?: pulumi.Input<string>;
// ...
}
brainy-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 issueARN of an ECS cluster.
ARN 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 parametermillions-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 PMmillions-furniture-75402
10/20/2022, 2:11 PMbland-tailor-50336
10/20/2022, 2:11 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 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 PMmillions-furniture-75402
10/20/2022, 2:17 PMconst mySg = awsx.ec2.SecurityGroup.fromExistingId(
"my-sg",
mySgId,
{ vpc },
);
bland-tailor-50336
10/20/2022, 2:18 PMmillions-furniture-75402
10/20/2022, 2:19 PMbland-tailor-50336
10/20/2022, 2:19 PMmillions-furniture-75402
10/20/2022, 2:20 PMbland-tailor-50336
10/20/2022, 2:20 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 resourcesmillions-furniture-75402
10/20/2022, 2:22 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 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 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 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