-
Notifications
You must be signed in to change notification settings - Fork 70
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
Invalid S3 arn error thrown for valid format #1121
Comments
It seems this function
arn:aws:s3:::my-bucket is a valid arn
|
bitIO
added a commit
to bitIO/smithy-typescript
that referenced
this issue
Apr 3, 2024
As stated in this issue smithy-lang#1121 arn check should not check s3 arns contain nor account nor region since they are not part of s3 arns
kuhe
added a commit
that referenced
this issue
Apr 4, 2024
* fix(middleware-endpoint): check for s3 arn parts As stated in this issue #1121 arn check should not check s3 arns contain nor account nor region since they are not part of s3 arns * test(middleware-endpoint): add unit tests and fix backwards compatibility --------- Co-authored-by: George Fu <kuhe@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What?
Smithy middleware-endpoint is unable to properly recognise an S3 bucket arn following the format:
arn:aws:s3:::bucket_name
...despite it being the the expected standard.
Instead, it will throw an error of
Invalid ARN: ${bucketName} was an invalid ARN.
Expected Behaviour
S3 ARN values without an account id should be valid and thus not throw an error.
Where?
Tested on:
node@v18.19.0
Using:
Example
N.B.
s3BucketExampleArn
is passed in via cloudformation as an environment variable, and shows up correctly in the logs - matching an existing bucket in the accounts.The text was updated successfully, but these errors were encountered: