Cannot define index field for aws CloudSearch with sdk 2.23.19 #4909
Replies: 2 comments 1 reply
-
403 Status Code is Forbidden, and indicates the credentials used in the call is not authorized to access the resource. Check if the credentials used are the ones you are expecting (if they are the same used in the cli call, for example).
If you mean your cloudsearch |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
-
I am trying to define index fields in the search domain and getting this exception
Caused by: software.amazon.awssdk.services.cloudsearch.model.CloudSearchException: null (Service: CloudSearch, Status Code: 403, Request ID: null)
My account have CloudSearchFullAccess permission. And defining index works from cli but not from sdk. Also my cloud search end point is the one that i get from console with the prefix https:// as prefix, rest is same what i got from console.
my code looks like this :
@configuration
public class AwsConfig {
**I have tried with cli something like this **
aws cloudsearch define-index-field --domain-name random-search --name testing_column_1 --type text
**it works with it but not from sdks. **
I have tried increasing the concurrency of the request and increasing the duration of connection time out while build the CloudSearchClient but it doesnt works.
**I am trying to define index fields in my cloudSearch Domain using the sdks 2.23.19. **
Beta Was this translation helpful? Give feedback.
All reactions