Closed santoshsahu closed 7 years ago
This is probably a bug in our endpoint calculation for WAF.
We'll get it fixed. Meanwhile, you can do:
config.endpointOverride = ...
and get the proper endpoint from http://docs.aws.amazon.com/general/latest/gr/rande.html#waf_region
Please let me know if that fixes your problem.
Actually, I take that back. If you're trying to use WAF for cloudfront, then the endpoint name should be waf.amazonaws.com. To get that, you should not specify a region in your config.
If you're trying to use WAF for Application Load Balancer, then you should be using aws-cpp-sdk-waf-regional service
I have tried without configuring end-point, but, then it goes to default region us-east-1(endpoint: waf.us-east-1.amazonaws.com). Looks like there is a bug. However, endpointOverride worked for me. Thanks.
You're right, we'll get that fixed. Thanks for reporting it.
The default region is US_EAS_1, it is set up as a convenience for most services. Since there is no region specified to WAF. You can explicitly set it to an empty string.
The fix for this has been merged.
Hi, I have been trying to create web ACL using cpp sdk. First step is to get the change token. Here is my code
Above code gives following error Unable to connect to endpoint Please find below the trace output of above code.
Please let me know, whether its a bug or i am doing something wrong. Thanks.