- A role with
AWSLambdaBasicExecutionRole
andSecretsManagerReadWrite
policies (namedlambdaRole
in this example). - A Twitter DEV account.
- An secret in AWS
SecretsManager
with Twitter dev credentials (seeJsonProperty
s inTwitterCredentials.cs
).
Install or update Amazon.Lambda.Tools
dotnet tool install -g Amazon.Lambda.Tools
dotnet tool update -g Amazon.Lambda.Tools
Deploy the lambda function
dotnet lambda deploy-function
Test the lambda function
dotnet lambda invoke-function
Cleanup
dotnet lambda delete-function HelloWorldTwitterLambda
Made using tweetinvi Twitter API library.