I am trying to create a lambda function using terraform script
I get error saying "error creating lambda function" I have put the screen shot of the error also

This is the terraform script:
I created a role in AWS Management console and gave a name as "Welcome-Lambda-Role". That is what I referred to that role in the script below. I don't know if that is the issue.
provider "aws" {
region = "us-west-2"
access_key = "xxz"
secret_key = "yyyydtEyZtOaQVGF5h"
}
data "archive_file" "welcome" {
type = "zip"
source_file = "welcome.py"
output_path = "outputs/welcome.zip"
}
resource "aws_lambda_function" "test_lambda" {
filename = "outputs/welcome.zip"
function_name = "welcome"
handler = "welcome.hello"
//created this role manually in AWS console and referred to that role in the next line
role = "Welcome-Lambda-Role"
//source_code_hash = filebase64sha256("lambda_function_payload.zip")
runtime = "python3.7"
}
welcome.py file content
def hello(event, context):
print("Welcome to terraform")