question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature: Add support for a AWS China Region API service

See original GitHub issue

Hi, @einaregilsson !

Thanks for creating this tool to create Elastic beanstalk deployments.

I’d like to request a feature that allows the consumer to modify the awsApiRequest function options so that we can modify the host. For global regions this works fine as shown below:

https://github.com/einaregilsson/beanstalk-deploy/blob/ebe3476a4ce991d54336935e75e78dd9d86f9408/aws-api-request.js#L17

However in China, regions like cn-north-1 and cn-northwest-1 regions have their API endpoints pointing to ${service}.${region}.amazonaws.com.cn (Note the .cn TLD)

Since I needed this on a project for work, I was wondering if there’s a way to be able to implement this on your library. I’ll be happy to open a PR.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
einaregilssoncommented, May 6, 2021

Ok, great, I’ll put it into the next release then!

1reaction
einaregilssoncommented, Mar 9, 2021

Hi

Do you know if it’s only in Chinese regions that this is the case? If so I’d probably just put in code right in aws-api-request.js that checks if region starts with cn- and adds .cn to the hostname directly there. If it’s in more regions I might have to add a whole parameter for the hostname to the action.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started with AWS Services in AWS China (Beijing ...
This blog provides general information to help you understand and get started using AWS services in Beijing and Ningxia Regions in China.
Read more >
Endpoints and ARNs for Amazon Web Services in China
To access Amazon services and resources, you use endpoints and Amazon Resource Names (ARNs).
Read more >
About the Amazon Web Services Support API
The Amazon Web Services Support API provides access to some of the features in the Amazon Support Center . The API provides two...
Read more >
Amazon Web Services in China Support and Other Resources
Amazon Web Services in China offers a variety of support options, including one-on-one troubleshooting, Amazon Trusted Advisor, a discussion forum, ...
Read more >
Beijing Region Endpoints - Getting Started with Amazon Web ...
Amazon Service China (Beijing) Endpoint Protocol Amazon API Gateway apigateway.cn‑north‑1.amazonaws.com.cn HTTPS API Gateway Dataplane execute‑api.cn‑north‑1.amazonaws.com.cn HTTPS API Gateway Dataplane V2 execute‑api.cn‑north‑1.amazonaws.com.cn HTTPS
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found