You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I acknowledge the upcoming end-of-support for AWS SDK for Java v1 was announced, and migration to AWS SDK for Java v2 is recommended.
Describe the bug
Malaysia Region (ap-southeast-5) is not in the Region Enum, so Lambda function that need to connect to S3 on Malaysia region will hit exception: java.lang.IllegalArgumentException: Cannot create enum from ap-southeast-5 value!
Regression Issue
Select this option if this issue appears to be a regression.
Expected Behavior
able to connect to Malaysia region S3 bucket with Lambda function.
Current Behavior
hit exception with:
java.lang.IllegalArgumentException: Cannot create enum from ap-southeast-5 value!
Reproduction Steps
when instantiate a S3 client object with below code:
Once Maintenance Mode starts, "the SDK will not receive API updates for new or existing services, or be updated to support new regions."
The Regions enum will not get updated with new regions. The recommended way is to use RegionUtils.getRegion():
Region region = RegionUtils.getRegion("ap-southeast-5");
debora-ito
added
closing-soon
This issue will close in 2 days unless further comments are made.
guidance
Question that needs advice or information.
and removed
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
labels
Feb 28, 2025
Upcoming End-of-Support
Describe the bug
Malaysia Region (ap-southeast-5) is not in the Region Enum, so Lambda function that need to connect to S3 on Malaysia region will hit exception: java.lang.IllegalArgumentException: Cannot create enum from ap-southeast-5 value!
Regression Issue
Expected Behavior
able to connect to Malaysia region S3 bucket with Lambda function.
Current Behavior
hit exception with:
java.lang.IllegalArgumentException: Cannot create enum from ap-southeast-5 value!
Reproduction Steps
when instantiate a S3 client object with below code:
AmazonS3 s3client = AmazonS3ClientBuilder
.standard()
.withRegion(Regions.fromName(region))
.withCredentials(new AWSStaticCredentialsProvider(basicAWSCredentials))
.build();
and passing in region = ap-southeast-5
exception will be thrown.
Possible Solution
add ap-southeast-5 to Region enum
Additional Information/Context
No response
AWS Java SDK version used
1.11.196
JDK version used
1.8.0_345
Operating System and version
windows 10
The text was updated successfully, but these errors were encountered: