Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 821 Bytes

File metadata and controls

38 lines (25 loc) · 821 Bytes

HelloWorld Twitter Lambda PoC

Requirements

  • A role with AWSLambdaBasicExecutionRole and SecretsManagerReadWrite policies (named lambdaRole in this example).
  • A Twitter DEV account.
  • An secret in AWS SecretsManager with Twitter dev credentials (see JsonPropertys in TwitterCredentials.cs).

Instructions

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.