The Wayback Machine - https://web.archive.org/web/20210504142407/https://github.com/aws-amplify/amplify-cli/issues/6520
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Referencing the Region in the Graphql Schema #6520

Open
amirmishani opened this issue Jan 31, 2021 · 4 comments
Open

Referencing the Region in the Graphql Schema #6520

amirmishani opened this issue Jan 31, 2021 · 4 comments

Comments

@amirmishani
Copy link

@amirmishani amirmishani commented Jan 31, 2021

Which Category is your question related to?
API

Amplify CLI Version
4.39.0

What AWS Services are you utilizing?
API, Auth, Function

Provide additional details e.g. code snippets
I'm trying to configure an HTTP resolver to call a step function. The url needs the correct aws region. I know you can pass the environment like so ${env} but I couldn't find anything in the docs stating how to pass the aws region. Is this possible right now or does it need to be feature request?

Something like this: @http(method: POST, url: "https://states.${region}.amazonaws.com/")

@jhockett
Copy link
Contributor

@jhockett jhockett commented Feb 1, 2021

Hi @amirmishani, we don't currently have support for passing in values to the http directive. Marking this as a feature request.

@meehawk
Copy link

@meehawk meehawk commented Mar 18, 2021

Hi @jhockett I'd like to work on this issue. However, I am new to the amplify-cli ecosystem. Any directions would be awesome

@jhockett
Copy link
Contributor

@jhockett jhockett commented Mar 18, 2021

Glad to hear it @meehawk! I recommend taking a look at our contributing guide.

For tackling this issue, I would look to the various graphql packages, mainly graphql-http-transformer. Good luck!

Edit: Also, our community discord can be a great resource.

@meehawk
Copy link

@meehawk meehawk commented Mar 19, 2021

@jhockett thank you so much. I have already started to work on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment