Multi-Factor-Authentication
For extra security, customers can add two-factor authentication to their AWS account and to IAM users. With multi-factor authentication (MFA) enabled, when customers sign into the AWS Management Console
For example, customers can define a policy that allows full access to all AWS API operations in Amazon EC2
{ “Version”: “2012-10-17”, “Statement”: [ { “Sid”: “AllowAllActionsForEC2”, “Effect”: “Allow”, “Action”: “ec2:*”, “Resource”: “*” }, { “Sid”: “DenyStopAndTerminateWhenMFAIsNotPResent”, “Effect”: “Deny”, “Action”: [ “ec2:StopInstances”, “ec2:TerminateInstances” ], “Resource”: “*”, “Conditions”: { “BoolIfExists”: {“aws:MultiFactorAuthPresent”:false} } } } }
To add an extra layer of security to Amazon S3 buckets, customers can configure MFA Delete, which requires additional authentication to change the versioning state of a bucket and permanently delete an object version. MFA Delete provides added security in the event that your security credentials are compromised.
To use MFA Delete, customers can use either a hardware or virtual MFA device to generate an authentication code. See the Multi-Factor Authentication page for a list of supported hardware or virtual MFA devices.