Amazon docker
From Do you speak Drupalish? Featured Drupal wiki-like documentation
- http://docs.aws.amazon.com/AmazonECS/latest/developerguide/Welcome.html
- From https://aws.amazon.com/free/ Choose Amazon EC2
Contents
ToDo
- https://docs.docker.com/engine/userguide/storagedriver/device-mapper-driver/ WARNING: Usage of loopback devices is strongly discouraged for production use.
Setup
- Top right choose datacenter Location
- How to Get Started with Amazon ECS To use Amazon ECS, you need to be set up to launch Amazon EC2 instances into your clusters http://docs.aws.amazon.com/AmazonECS/latest/developerguide/Welcome.html
- From security group add rules allow http and https
network
- Choose elastic ips, only to one instance. Is like failover
- https://aws.amazon.com/blogs/aws/multiple-ip-addresses-for-ec2-instances-in-a-virtual-private-cloud/
- You can use one Elastic IP Address per instance at no charge (as long as it is mapped to an EC2 instance), as has always been the case. We are reducing the price for Elastic IP Addresses not mapped to running instances to $0.005 (half of a penny) per hour in both EC2 and VPC.
traffic
- https://aws.amazon.com/ec2/pricing/ limit to 15 GB of bandwidth out aggregated across all AWS services 1 GB of Regional Data Transfer
- http://calculator.s3.amazonaws.com/index.html cost estimation for backup transfer high, i can get backup once
- put to docker cloud?
Amazon EC2 Container Registry
Sign Up for AWS
- When you sign up for AWS, your AWS account is automatically signed up for all services, including Amazon EC2 and Amazon ECS. You are charged only for the services that you use. more
Create an IAM User
- However, we don't recommend that you acce Management (IAM) instead.
- Create group EC2 full access
Create a Key Pair
- AWS uses public-key cryptography to secure the login information for your instance. A Linux instance, such as an Amazon ECS container instance, has no password;
- From the navigation bar, select a region for the key pair. You can select any region that's available to you, regardless of your location: however, key pairs are specific to a region.
- The private key file is automatically downloaded by your browser. The base file name is the name you specified as the name of your key pair, and the file name extension is .pem. Save the private key file in a safe place.
- Optional) To prepare to connect to a Linux instance from Windows using PuTTY putty gen Connecting to Your Linux Instance from Windows Using PuTTY
Create a Virtual Private Cloud
- Already setup?
Create a Security Group
- Ip restrict
- Your instances may be accessible from any IP address. We recommend that you update your security group rules to allow access from known IP addresses only.
- You can also open additional ports in your security group to facilitate access to the application or service you're running, e.g., HTTP (80) for web servers. Edit security groups
- Can also setup into iptables rules
Install the AWS CLI
http://docs.aws.amazon.com/cli/latest/userguide/installing.html#install-msi-on-windowsI prefer putty directly
Getting Started with Amazon EC2 Linux Instances
install docker
performance
- even small instance works nice