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