We are trying to deploy prefect flow in ec2, we r using aws lambda

hi, we are trying to deploy prefect flow in ec2, we r using aws lambda and prefect python sdk…we have created lambda with prefect runtime and updated prefect api url to our server url. but lambda is getting timed out and flow is not getting deployed.

do we need to set any env variables additionally to make it work