Skip to content

I want to buy an aws certification exam but the payment is in dollars. So I build this to send me an email when the USD is less than 18 MXN.

Notifications You must be signed in to change notification settings

luisMartinez011/bot-dollar-currency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bot-dollar-currency

I want to buy an AWS certification exam but it is only available in USD dollars, so I build this bot to track the USD - MXN exchange and emailing me once per day to check when it is the best opportunity to buy the exam.

Deploy the sample application

The Serverless Application Model Command Line Interface (SAM CLI) is an extension of the AWS CLI that adds functionality for building and testing Lambda applications. It uses Docker to run your functions in an Amazon Linux environment that matches Lambda. It can also emulate your application's build environment and API.

To use the SAM CLI, you need the following tools.

To build and deploy your application for the first time, run the following in your shell:

sam build 
sam deploy --guided

There are two environment variables in template.yaml

      Environment:
        Variables:
          API_KEY: YOUR_API_KEY
      BDCEventbridge:
          Type: AWS::Scheduler::Schedule
          Properties:
            Description: "Timer for bot dollar currency"
            FlexibleTimeWindow:
              Mode: "OFF"
            ScheduleExpression: "cron(0 12 * * ? *)"
            Target:
              Arn: !GetAtt FlowChart.Arn
              RoleArn: Your_Role_ARN

Cleanup

To delete the sample application that you created, use the AWS CLI. Assuming you used your project name for the stack name, you can run the following:

aws cloudformation delete-stack --stack-name bot-dollar-currency

Resources

See the AWS SAM developer guide for an introduction to SAM specification, the SAM CLI, and serverless application concepts.

Next, you can use AWS Serverless Application Repository to deploy ready to use Apps that go beyond hello world samples and learn how authors developed their applications: AWS Serverless Application Repository main page

About

I want to buy an aws certification exam but the payment is in dollars. So I build this to send me an email when the USD is less than 18 MXN.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages