- Newest
- Most votes
- Most comments
I'm using CLI v2 and also getting the same error. Upon checking the help text for this command in CLI via aws s3api create-bucket help
, the object-ownership
option is not there (hence the error) even though the CLIv2 documentation has it as well (https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/create-bucket.html).
This could either be a documentation issue or an actual CLI bug. You may open an issue for this in github (https://github.com/aws/aws-cli/issues).
For the meantime you can create your s3logging bucket using the create-bucket
CLI command but without the object-ownership
option and then just issue another CLI command put-bucket-ownership-controls
. More information here: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-ownership-existing-bucket.html.
Relevant content
- asked 6 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago