GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - fugashy/aws_network_and_server_sample: Construct Wordpress blog site on little secure VPC

BranchesTags
Open more actions menu

Latest commit

 

History

34 Commits
34 Commits

Folders and files

NameName
Last commit message
Last commit date
aws_network_and_server_sample
aws_network_and_server_sample
 
 
config/boto3
config/boto3
 
 
dockerfile/web_server
dockerfile/web_server
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

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

  • さわって学ぶクラウドインフラ Amazon Web Services 基礎からのネットワーク&サーバー構築

    日経BP

    https://www.amazon.co.jp/Amazon-Web-Services-基礎からのネットワーク&サーバー構築-改訂3版-大澤-ebook/dp/B084QQ7TCF

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

About

Construct Wordpress blog site on little secure VPC

Topics

awsboto3ec2-instanceecsecs-clusterelastic-compute-cloudelastic-container-serviceelastic-ipinternet-gatewaymariadbnat-gatewayprivate-subnetspublic-subnetsroute-tablessubnetvpcwordpress

Resources

Readme
BSD-3-Clause license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.