Git Product home page Git Product logo

venmo-scheduler's Introduction

Venmo Scheduler

TerraformApplyProd

About The Project

This is a serverless cron job written in Python which sends Venmo payment requests once a month.

The project is designed to touch on multiple technologies often encountered as a DevOps Engineer or Software Engineer.

Built With

  • Python
  • AWS
  • Terraform
  • Github

How It Works

Code

Python script sends Venmo payment requests to the list of users provided. Script validates the users exist and checks request has not already been sent this month before sending the request with the specified amount.

Infrastructure

Terraform is used to define all the AWS resources needed to run the script in a Lambda. An eventbridge rule is used to trigger the lambda on a monthly cron schedule. A cloudwatch alarm monitors for any lambda execution errors or code errors and sents them to my email address via SNS.

CI/CD

A Github Actions workflow is triggered upon creating a PR against the main branch to run a speculative plan on the changes and it is required to pass before the PR can be merged. Once the PR is merged another workload is triggered that applied the plan to deploy the AWS changes made in the Terraform definitions.

Getting Started

To get your own instance up and running follow these steps.

Prerequisites

  • Terraform Cloud Account
  • AWS Account

Steps

  1. In your Terraform Cloud Workspace create variables. Example values here.
    • required variables:
      • venmo_access_token
      • venmo_request_amount
      • venmo_request_note
      • venmo_request_schedule
      • venmo_request_users
      • send_request
      • topic_subscription_email
    • optional variables
      • environment
  2. In your forked repo of this repository create variables
    • in Environment named prod, create if needed
      • TF_CLOUD_ORGANIZATION
      • TF_WORKSPACE
    • in Action secrets
      • TF_API_TOKEN
  3. Trigger the terraform-apply.yml to deploy.

Roadmap

  • Add unit tests

Acknowledgements

venmo-scheduler's People

Contributors

navarro-dev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.