I'm struggling with a code example shared in the d...
# general
a
I'm struggling with a code example shared in the documentation for pulumi crosswalk for aws. I would like to create an
awsx.ecs.FargateService
and would like to pass it a
cluster
as an argument. These docs show an example of passing
cluster.arn
from an
aws.ecs.Cluster
resource, (type
Output<string>
). However the code for
awsx.ecs.FargateService
expects cluster to be a non-output_,_ of type
ecs.Cluster
Is this a bug? What I would really like to do is pass a cluster from a StackReference to my various ECS services that are each managed on their own stacks.
m
Hi there — apologies for the confusion here. The code in this doc is correct for the updated (i.e., new beta) version of awsx, which is currently at
1.0.0-beta.5
. I’m guessing your awsx is maybe
0.40.x
or similar. Is that right?
(I happened to hit this myself this morning and remembered your question, so hopefully this’ll help you also.)
this combo produces a working example for me: https://gist.github.com/cnunciato/05a143fac501f12816c12a79ae312ec0
a
Sweet! Thanks for the responsiveness. I love using the opinionated
awsx
because it speeds up my life quite a bit. I started down the road of defining the underlying
aws.ecs.{TaskDefinition, Service}
, but there's a ton of added complexity with defining a JSON container definition, etc
I'll bump my version
Broke a couple other things but hoping they will be easier to fix
m
Awesome, you bet, hope that works out for ya
a
Any idea here? When running
pulumi up
Copy code
pulumi:providers:awsx (default_1_0_0_beta_5):
    error: could not read plugin [/Users/wizardfiction/.pulumi/plugins/resource-awsx-v1.0.0-beta.5/pulumi-resource-awsx] stdout: EOF
I have pulumi installed via homebrew
v3.32.1
Appears to be an issue on my M1 mac, but not in a Linux github actions runner