Git Product home page Git Product logo

aws_ec2_utils's Introduction

Installation Instructions

aws_ec2_docker.sh installs the following tools (tested on AWS EC2 VM, AMI: Ubuntu 16.04):

  1. Git
  2. Docker
  • Docker CE
  • Docker Compose
  • Docker Machine

To install docker, run the following commands:

wget https://raw.githubusercontent.com/SYAN83/Packages_Installation_for_Linux/master/ec2_init.sh
chmod +x aws_ec2_docker.sh
./aws_ec2_docker.sh

After installation, logout and log back in.


To mount EFS to EC2:

  1. create efs instance using the same security group of the ec2 instance.
  2. add the following rules to ec2 inbound security group:
Type Protocol Port Range Source
SSH TCP 22 Anywhere
NFS TCP 2049 Group ID (e.g.: sg-11c15979)
  1. on ec2 instance, run the following commands:
# Install the nfs client on your EC2 instance:
sudo apt-get -y install nfs-common
# Create a new directory on your EC2 instance, such as "efs":
sudo mkdir efs
# Mount your file system using the DNS name:
sudo mount -t nfs4 -o \
  nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 \
  mount-target-ip:/ efs
# Change ownership
sudo chown $USER:$GROUP efs

aws_ec2_utils's People

Contributors

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