Skip to content

Instantly share code, notes, and snippets.

@zaireali649
Created April 13, 2022 19:47
Show Gist options
  • Save zaireali649/8d6e86d8130f8c6568a784694046412a to your computer and use it in GitHub Desktop.
Save zaireali649/8d6e86d8130f8c6568a784694046412a to your computer and use it in GitHub Desktop.
Create a Sample Lambda Function URL
### Create Lambda Function URL
client_lambda = boto3.client('lambda')
response_create_function_url_config = client_lambda.create_function_url_config(
FunctionName='test_Lambda_Function_URLs_boto3',
AuthType='NONE'
)
function_URL = response_create_function_url_config['FunctionUrl']
print(function_URL)
import requests
response_requests = requests.get(function_URL)
print(response_requests.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment