DEV Community

Cover image for Running a free Twitter bot on AWS Lambda

Running a free Twitter bot on AWS Lambda

Victoria Drake on March 08, 2018

If you read About time, you'll know that I'm a big believer in spending time now on building things that save time in the future. To this end I bui...
Collapse
 
elaziziyoussouf profile image
Elazizi Youssouf

Very exciting trick, thank you for sharing

Collapse
 
victoria profile image
Victoria Drake

My pleasure! Use it for good! :)

Collapse
 
jvarness profile image
Jake Varness

The code looks so simple too! Great little tutorial

Collapse
 
ben profile image
Ben Halpern

Your posts are absolutely brilliant Vicky

Collapse
 
victoria profile image
Victoria Drake

𝓣𝓱𝓪𝓷𝓴𝓼 𝓼𝓸 𝓶𝓾𝓬𝓱 𝓑𝓮𝓷!

Collapse
 
kylegalbraith profile image
Kyle Galbraith

Awesome post Vicky! I think adding the code in here or in a future post would be worthwhile for those that are new to GO.

Collapse
 
victoria profile image
Victoria Drake

I was considering writing one on the Twitter bot since it would go through some common Go stuff, but I think I'll hold off until I have a use case with slightly more variety. If you can think of one, let me know!

Collapse
 
ben profile image
Ben Halpern

When I first tried Go I got caught up on some of the $GOPATH and even though I stumbled through it I'd definitely find value in some writing that clarified some of the nuances of the language's practices and opinions.

Collapse
 
olivercole profile image
Oliver Cole • Edited

I’m really keen to try a Twitter bot that actually responds to events on Twitter - ie, something hits API gateway or SNS only when certain conditions are met.
Zapier would do this: zapier.com/apps/twitter/integrations.
But it costs money :(

Collapse
 
rockystrongo profile image
RockyStrongo

Wow that’s amazing, thanks! I didn’t know Lambda even existed. For my Twitter bot (check out dev.to/rockystrongo/twitter-bot-po...) I have to maintain an AWS Elastic Beanstalk environment up and running all the time! Thanks for this, I’ll look into it 🙂

Collapse
 
tadpole256 profile image
tadpole256

Useful, interesting and well written... a truly magical combo! Thanks!

Collapse
 
victoria profile image
Victoria Drake

Thank you so much!

Collapse
 
supert56 profile image
Tom Pinchen

Thanks so much for writing this Victoria, it's a super tutorial!

Collapse
 
victoria profile image
Victoria Drake

You’re welcome!

Collapse
 
mgla profile image
Maik Glatki

I love it :)

Collapse
 
a_cava94 profile image
Andrea Cavagna | AWS builder

Great tutorial!

Collapse
 
victoria profile image
Victoria Drake

Thank you!

Collapse
 
karolisl profile image
Karolis

Thanks for sharing!
I was wondering: back in the day, you had to have NAT gateway (which costed like low-end ec2 inst) for lambdas to access internet. It's not the case anymore?

Collapse
 
victoria profile image
Victoria Drake

AWS Lambda doesn't require any ancillary services to access the internet. Isn't modern technology wonderful? :)

Collapse
 
jones80_jones profile image
steve jones

Hey great post, GitHub link ain’t working though? Can u update the link if still available ? Thanks!

Collapse
 
victoria profile image
Victoria Drake

Thanks Steve! I fixed it.