Lambda Function | S3 | SNS

Am trying to create a lambda function, and it needs to trigger an SNS email when uploading objects to S3.
But I can’t create a lambda function getting an error
Error : failed creating IAM Role (iam_for_lambda_fn): AccessDenied: User: arn:aws:iam::747360469242:user/terraform-user is not authorized to perform: iam:CreateRole on resource: arn:aws:iam::747360469242:role/iam_for_lambda_fn with an explicit deny in an identity-based policy
│ status code: 403, request id: 7f2e1415-53b0-48f7-9fad-10248cbbba5e

Already provided AdministratorAccess to the specific user

Hi @thomasvjoseph7

Where are you trying to create this? Is it in a corporate AWS account?

It’s a Personal account. (Learning Terraform)
Creating Lambda Function,
It will invoke/ trigger SNS emails when uploading objects to S3 buckets.