This message was deleted.
# general
s
This message was deleted.
l
You shouldn't need to use getQueue if you already have a queue resource. getQueue is for loading an existing queue into state.
Hopefully all constructors of other resources that can take a queue ARN or id as a parameter, will be looking for an
Input<string>
, which you can get from the resource you've just created.
w
im just trying to get the URL specifically, since i need to pass it as an env var to my service.
aws.sqs.Queue
resource doesnt expose the
url
, but
getQueue
does. As a workaround i can pass the name of the queue to my service and then get its url in the service itself. Just seeing if there's a way to get it through pulumi 🙂
l
You could make the name of queue an output of your stack, and then you could set your env var using aws cli?
aws sqs get-queue-url --queue-name $(pulumi stack output queueName)
or similar, should do it...
Or if you're using the automation API, you could do it all from code.
w
thank you, i'll try that