-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Functionbeat] Wrong error message when using a bucket which doesn't exists in AWS #17572
Comments
Pinging @elastic/integrations-services (Team:Services) |
I have the same issue, just following the example in the documentation, nothing fancy https://www.elastic.co/guide/en/beats/functionbeat/current/functionbeat-configuration.html |
I think this is coming from the catch all error here, I believe we can stop something like this pretty early on where we are validating the configuration, can send in a PR soon. |
## What does this PR do? This is a bug fix when functionbeat errors out with a blanket error message. According to me, this error can be mitigated pretty early by validating the S3 bucket name by creating the regex patterns from the rules for bucket naming. https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html#bucketnamingrules ## Why is it important? This will restrict users from shooting themselves in their foot when they pass an incorrect bucket name in the functionbeat configuration. ## Related issues Closes #17572
## What does this PR do? This is a bug fix when functionbeat errors out with a blanket error message. According to me, this error can be mitigated pretty early by validating the S3 bucket name by creating the regex patterns from the rules for bucket naming. https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html#bucketnamingrules ## Why is it important? This will restrict users from shooting themselves in their foot when they pass an incorrect bucket name in the functionbeat configuration. ## Related issues Closes elastic#17572 (cherry picked from commit 43354ff)
## What does this PR do? This is a bug fix when functionbeat errors out with a blanket error message. According to me, this error can be mitigated pretty early by validating the S3 bucket name by creating the regex patterns from the rules for bucket naming. https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html#bucketnamingrules ## Why is it important? This will restrict users from shooting themselves in their foot when they pass an incorrect bucket name in the functionbeat configuration. ## Related issues Closes #17572 (cherry picked from commit 43354ff) Co-authored-by: Ravi Naik <ravinaik1312@gmail.com>
What is the solution finally? |
This shows that the bugfix is now available in version |
Hi, |
This is solved by installing and configuring AWS CLI. I could easily upload function in aws. Probably the document need to update for Windows users and add this step under https://www.elastic.co/guide/en/beats/functionbeat/current/functionbeat-installation-configuration.html#setup-assets |
When using
cloudwatch
Functionbeat with a non existing bucket, you get the following error message:Function: cloudwatch, could not deploy, error: bucket 'sdfja;sdlkfja;lsdkjfa;lsdkfjalksdjhfg928y3zs' already exist and you don't have permission to access it
Obviously, bucket
sdfja;sdlkfja;lsdkjfa;lsdkfjalksdjhfg928y3zs
does not exists 😄The text was updated successfully, but these errors were encountered: