adamant-dress-73325
09/09/2019, 7:12 PM^0.18.25
to ^1.1.0
of pulumi-aws
, I am getting the following error during preview:
Diagnostics:
aws:ecs:Cluster (cluster):
error: Preview failed: refreshing urn:pulumi:qa::pt-site-next::awsx:x:ecs:Cluster$aws:ecs/cluster:Cluster::cluster: error reading ECS Cluster (arn:aws:ecs:us-east-1:149539663033:cluster/arn:aws:ecs:us-east-1:149539663033:cluster/blah-cluster-qa-6372e69): InvalidParameterException: Invalid identifier: Unexpected number of separators
status code: 400, request id: 68c46836-6b60-4072-b1bb-758e20a4ed43
Trying to get us onto the latest deps but this is a blocker.gentle-diamond-70147
09/09/2019, 7:14 PMawsx
? That urn
indicates you're using awsx
as well.adamant-dress-73325
09/09/2019, 7:14 PMbroad-dog-22463
09/09/2019, 7:17 PMarn:aws:ecs:us-east-1:149539663033:cluster/arn:aws:ecs:us-east-1:149539663033:cluster/blah-cluster-qa-6372e69
adamant-dress-73325
09/09/2019, 7:18 PMbroad-dog-22463
09/09/2019, 7:19 PMadamant-dress-73325
09/09/2019, 7:23 PMlemon-spoon-91807
09/09/2019, 7:25 PMadamant-dress-73325
09/09/2019, 7:26 PMconst cluster = new awsx.ecs.Cluster('cluster', {
cluster: stackRef.getOutputSync('clusterId') as pulumi.Output<string>,
vpc,
});
lemon-spoon-91807
09/09/2019, 7:27 PMclusterId
variable?adamant-dress-73325
09/09/2019, 7:28 PMcluster = new awsx.ecs.Cluster(`pt-cluster-${env}`, {
vpc: vpc,
tags: {
Name: `pt-cluster-${env}`,
},
});
export const clusterId = cluster && cluster.id;
lemon-spoon-91807
09/09/2019, 7:31 PMadamant-dress-73325
09/09/2019, 7:32 PMlemon-spoon-91807
09/09/2019, 7:34 PM(arn:aws:ecs:eu-west-1:104375939617:cluster/arn:aws:ecs:eu-west-1:104375939617:cluster/candu-backend): InvalidParameterException: Invalid identifier: Unexpected number of separators
aws.ecs.Cluster.get("whateveryouwant", "< their actual cluster id >")
ReadResource RPC prepared: id=<correct id>, name=whateveryouwant<{%reset%}>)
arn:aws:ecs:us-east-1:149539663033:cluster/arn:aws:ecs:us-east-1:149539663033:cluster/blah-cluster-qa-6372e69): InvalidParameterException: Invalid identifier: Unexpected number of separators
/
and has prepended it to the beginning of the ID.