GithubHelp home page GithubHelp logo

rajacgsltd / hello-wordl-flask-terraform Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devopsengineer30/hello-wordl-flask-terraform

0.0 0.0 0.0 6 KB

Shell 11.07% Python 4.76% HCL 78.59% Dockerfile 5.58%

hello-wordl-flask-terraform's Introduction

  1. Flask Hello World App:

Pre-requisites: AWS account with default VPC, AWS Key pair, AWS security credentials.

    i. All the work is done using terraform. We can execute terraform apply and can query the public IP of the instance on any browser to check the message Hello World.
    ii. Deployed Flask Hello world app in AWS EC2 instance
    iii. Using docker-compose, the service is made available to public
    iv. The hello-world-flask image is created and pushed to the AWC ECR 
    v. As per the requirements, the app will restart always, logs the output into var/log/app.log and runs in UTC Timezone

Note: 
a) Due to limited time, I couldn’t implement HTTPS functionality
b) Replace the IPv4 address in ec2_sg security group.
c) In the install_essentials.sh, replace the ECR registry ID.
d) Replace the key and aws-profile variables.
e) Remove the backend step to save the tf state in local.

2. Hello world lambda function:
    i. Using terraform, deployed hello world python program as lambda fucntion.
    ii. The function will log to cloudwatch.

3. Modify code to provision an SNS topic:
    i. modified the terraform code created for lambda function in step 2 to create an SNS topic of name ‘blockchain-topic’

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.