aws s3 ls
aws s3api get-bucket-versioning --bucket <bucket_name>
# root 계정의 MFA 디바이스 arn 확인
aws iam list-virtual-mfa-devices
# root 계정의 Access key를 직접 aws cli에 설정해 진행하는 경우
aws s3api put-bucket-versioning --bucket <bucket_name> --versioning-configuration Status=Enabled,MFADelete=Enabled --mfa "<root_account_mfa_device_serialnum> <OTP_number>"
# root 계정의 profile을 이용하는 경우
aws s3api put-bucket-versioning --profile <root_profile> --bucket <bucket_name> --versioning-configuration Status=Enabled,MFADelete=Enabled --mfa "<root_account_mfa_device_serialnum> <OTP_number>"