When creating a bucket and immediately after trying to get the bucket_encryption AWS return this default:
aws s3 mb s3://jacky-tmp-bucket --region us-east-1
make_bucket: jacky-tmp-bucket
jackyalbo@jalbo-mac noobaa-operator % aws s3api get-bucket-encryption --bucket jacky-tmp-bucket
{
"ServerSideEncryptionConfiguration": {
"Rules": [
{
"ApplyServerSideEncryptionByDefault": {
"SSEAlgorithm": "AES256"
},
"BucketKeyEnabled": false
}
]
}
}
but the tests for get_bucket_encryption expect: ServerSideEncryptionConfigurationNotFoundError
This is also true after you delete the bucket encryption - the default will be returned and not an Error