1 Answer
- Newest
- Most votes
- Most comments
0
Hi. Using the root account credentials and MFA in a Lambda function is generally not recommended, as it goes against the principle of least privilege and secure access management practices. Instead, you can achieve the same goal by following the AWS recommended approach, which involves using an AWS Identity and Access Management (IAM) role with the necessary permissions to enable MFA Delete on the S3 bucket.
answered a year ago
Relevant content
- asked a year ago
- asked a year ago
- asked 4 months ago
- AWS OFFICIALUpdated 3 months ago