-
Notifications
You must be signed in to change notification settings - Fork 665
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
accessanalyzer - region not being read? #1260
Comments
I hit the same problem with list analyzers, seems like the region isn't added to the stack i.e in the InvokeOperation in access analyzer functions for example List Analyzer is missing this middleware to be added:
I think adding to the middleware stack like this:
should work buts a little hacky workaround. |
|
Re-opning this until we cut a new release with the merged fix. |
Can I ask when this will be fixed please? This is quite serious as in blocking me from using v2 completely. :/ |
This issue should be fixed now, and you can updater to the latest version of the SDK to get the correct behavior. Please reopen if this issue if you're still having issues. |
|
Original issue is closed[1] [1]: aws/aws-sdk-go-v2#1260
Original issue is closed[1] [1]: aws/aws-sdk-go-v2#1260
Original issue is closed[1] [1]: aws/aws-sdk-go-v2#1260
Original issue is closed[1] [1]: aws/aws-sdk-go-v2#1260
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
I cannot figure out how to use the
DeleteAnalyzer
action and am leaning towards the issue being a bug.Ive dont have any problem using the SDK for other resources.
It seems that the region is never passed to the functions so errors out. Ive set it in numerous places, as well as the
AWS_REGION
andAWS_DEFAULT_REGION
variables.Version of AWS SDK for Go?
Example: v1.29.22
1.5.0
Version of Go (
go version
)?go version go1.16.3 linux/amd64
To Reproduce (observed behavior)
Steps to reproduce the behavior (please share code or minimal repo)
Results in the following error:
Similarly if i dont provide the resolver, i get a similar error.
If i add a resolver URL...
Trying some other stuff...
Which returns the following error:
Ive tried a load of different things but cannot for the life of me delete an access analyzer.
Please provide some insight into what im missing here. The documentation is lacking any examples and I couldnt see any unit tests to reverse engineer.
Expected behavior
Id expect the access analyzer to be deleted.
The text was updated successfully, but these errors were encountered: