Using AWS SQS resource with different environments

Thanks for launching the SQS resource in beta, this is a great new feature. However, I'm having a hard time understanding how I can work with it with different production & staging environments.

We use different dev/staging/prod queues in AWS SQS and it seems like in Retool I have to choose a single queue for the SQS resource query in my app. That is, when I change the Retool environment in my app, I'm unable to change the queue without that change persisting in the other environment.

image

Maybe I'm missing something, but I don't understand how I can use this resource query with different environments. Can you help?

Connect to Amazon SQS

Ahhh I missed that I could handle this via JS using the fx button to the right using retoolContext.environment.

Still would be good to make this possible in the UI be allowing the dropdown menu to work with environments.

1 Like