Created
April 13, 2022 19:47
-
-
Save zaireali649/8d6e86d8130f8c6568a784694046412a to your computer and use it in GitHub Desktop.
Create a Sample Lambda Function URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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