Git Product home page Git Product logo

aws_network_and_server_sample's Introduction

aws_network_and_server_sample

Construct Wordpress blog site on little secure VPC

  • Launch all

  • press enter to kill all of them

components after launch finished

  • VPC

    • Internet gateway

    • PublicSubnet

      • web_server container (ECS on EC2)

        Wordpress works

      • NAT Gateway with Elastic IP

      • PublicRootTable

    • PrivateSubnet

      • db_server container (ECS on EC2)

        MariaDB works

      • PrivateRootTable

dependency

  • python 3.7.4

  • boto3 1.18.21

required fee for AWS

  • NAT and EIP(Creation and running)

    NAT is used for pulling docker image.

required IAM roll for instance

  • eclInstanceRole

how to use

boto3 ver

  • launch

    python aws_network_and_server_sample/_boto3/main.py `pwd`/config/all.yaml
  • access to public IP of web_server_ec2 by your browser

    See stdout like create web_server_ec2: ip: xx.xxx.xxx.xx

  • press enter to kill

reference

docker images for ECS

  • web server

    • In public repos of dockerhub

      docker pull fugashy/aws_web_server_sample:latest
      
      # try
      docker run --rm -it --name web_server -p 80:80 aws_web_server_sample
  • db server

    • use official mariadb

      docker pull mariadb
      
      # try
      docker run -p 127.0.0.1:3306:3306 -e MARIADB_ROOT_PASSWORD=my-secret-pw -e MARIADB_DATABASE=wordpress --name db_server -it --rm mariadb

aws_network_and_server_sample's People

Contributors

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