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

New region ap-southeast-5 metadata is not available #5548

Closed
daeho-ro opened this issue Aug 31, 2024 · 3 comments
Closed

New region ap-southeast-5 metadata is not available #5548

daeho-ro opened this issue Aug 31, 2024 · 3 comments
Assignees
Labels
bug This issue is a bug. p2 This is a standard priority issue

Comments

@daeho-ro
Copy link

Describe the bug

Below test is failed and so I cannot obtain instances info from the new region.

Assert.assertTrue(Ec2Client.serviceMetadata().regions().contains(Region.of("ap-southeast-5")));

Last time, this was happen for ca-west-1 and here comes again.

Expected Behavior

The test should pass and can obtain ec2 info from ap-southeast-5

Current Behavior

The test was failed and can not obtain ec2 info from ap-southeast-5

Reproduction Steps

Assert.assertTrue(Ec2Client.serviceMetadata().regions().contains(Region.of("ap-southeast-5")));

Possible Solution

Should add the new region metadata into the sdk?

Additional Information/Context

No response

AWS Java SDK version used

2.27.17

JDK version used

corretto-1.8.0_402, corretto-21.0.2 both

Operating System and version

macOS Sonoma 14.5

@daeho-ro daeho-ro added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 31, 2024
@debora-ito
Copy link
Member

Acknowledged.

@debora-ito debora-ito added p2 This is a standard priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Sep 4, 2024
@debora-ito debora-ito self-assigned this Sep 4, 2024
@debora-ito
Copy link
Member

An update was released yesterday in SDK version 2.27.23, ap-southeast-5 is now in the list.

To not rely so much on static code to obtain the list of regions, consider using System Manager's Infrastructure APIs: https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-public-parameters-global-infrastructure.html

aws ssm get-parameters-by-path \
    --path /aws/service/global-infrastructure/services/ec2/regions \
    --query 'Parameters[].Value'

I did some local tests and there's one difference: the SSM get-parameters-by-path response doesn't include us-iso-* or fips-* regions, but this may be a good alternative if your use case doesn't use those regions.

Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. p2 This is a standard priority issue
Projects
None yet
Development

No branches or pull requests

2 participants