Franck Dernoncourt Asked: 2024-04-21 06:24:14 +0800 CST2024-04-21 06:24:14 +0800 CST 2024-04-21 06:24:14 +0800 CST How I can use the AWS CLI to see whether an S3 bucket has versioning activated? 772 How I can use the AWS CLI (aws s3) to see whether an S3 bucket has versioning activated? amazon-s3 1 Answers Voted Best Answer Christopher Sinclair 2024-04-21T07:42:30+08:002024-04-21T07:42:30+08:00 s3api is the CLI command you want: aws s3api get-bucket-versioning --bucket BUCKET_NAME Example of output for a bucket where bucket versioning is enabled: { "Status": "Enabled" }
s3api
is the CLI command you want:Example of output for a bucket where bucket versioning is enabled: