GithubHelp home page GithubHelp logo

europ / aws-simple-web-server Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 660 KB

Deploy simple web server provided by nginx in debian 10 to amazon elastic compute cloud using terraform.

HCL 100.00%
aws ec2 amazon-web-services amazon-elastic-compute-cloud terraform nginx debian debian10 web-server

aws-simple-web-server's Introduction

Amazon Web Services - Simple Web Server

Deploy simple web server provided by nginx in debian 10 to amazon elastic compute cloud using terraform.

Deployed Infrastructure

infrastructure.png

Dependency Graph

graph.svg

Setup

  1. prerequisites installation

    1. create AWS Account
      • generate access key
    2. install AWS CLI
    3. install Terraform
  2. environment configuration

    mkdir -p ~/.aws
    
    cat <<EOS > ~/.aws/config
    [default]
    region = us-east-1
    EOS
    
    cat <<EOS > ~/.aws/credentials
    [default]
    aws_access_key_id = <your AWS access key ID>
    aws_secret_access_key = <your AWS secret access key>
    EOS
    
    # secure the files
    chmod 0600 ~/.aws/config ~/.aws/credentials
  3. clone this repository and cd into it

  4. create SSH key pair

    ssh-keygen -t rsa -b 4096 -C "terraform" -f ./ssh/key
  5. configure terraform variables (set your custom values)

    # create variable file
    cp .terraform.tfvars.example terraform.tfvars
    
    # set custom variable values
    vi terraform.tfvars
  6. deployment

    # download module(s)
    terraform init
    
    # deploy
    terraform apply

aws-simple-web-server's People

Contributors

europ avatar

Watchers

 avatar  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.