I am trying to create an S3 bucket using
aws s3api create-bucket —bucket kubernetes-aws-wthamira-io
It gives this error:
Most of the suggestions listed above could be a reason for the IllegalLocationConstraintException
error to happen.
In my case, the same error happened and solved by creating a new bucket with the same region as that of the code I am working with.
For instance, if S3 bucket is created in us-east-1
region, your code e.g., the AWS SageMaker notebook instance
has to be also created from us-east-1
region.