I am using terraform code for doing deployment in aws. My requirement is i have to enable MFA delete on s3 bucket using terraform.
As analyze found no support on cloudformation template. So thought to proceed to use lambda function and include on cloudformation template of s3 bucket
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-bucket.html
But here noticed the problem, for enabling mfa we must use root account access key and secretkey and also mfa otp. How to achieve in lambda function. Can anybody suggest me.