add support for aws

pull/48/merge
Kelsey Hightower 2016-09-11 05:06:32 -07:00
parent e6ff289410
commit e4dc273f97
1 changed files with 38 additions and 0 deletions

View File

@ -184,6 +184,8 @@ aws elb create-load-balancer \
All the VMs in this lab will be provisioned using Ubuntu 16.04 mainly because it runs a newish Linux Kernel that has good support for Docker.
All Virtual Machine will be created with the `--no-source-dest-check` flag to enable traffic between foreign subnets to flow. The will enable Pods to communicate with nodes and other Pods via the Service IP.
### Create Instance IAM Policies
```
@ -335,6 +337,12 @@ CONTROLLER_0_INSTANCE_ID=$(aws ec2 run-instances \
jq -r '.Instances[].InstanceId')
```
```
aws ec2 modify-instance-attribute \
--instance-id ${CONTROLLER_0_INSTANCE_ID} \
--no-source-dest-check
```
```
aws ec2 create-tags \
--resources ${CONTROLLER_0_INSTANCE_ID} \
@ -355,6 +363,12 @@ CONTROLLER_1_INSTANCE_ID=$(aws ec2 run-instances \
jq -r '.Instances[].InstanceId')
```
```
aws ec2 modify-instance-attribute \
--instance-id ${CONTROLLER_1_INSTANCE_ID} \
--no-source-dest-check
```
```
aws ec2 create-tags \
--resources ${CONTROLLER_1_INSTANCE_ID} \
@ -375,6 +389,12 @@ CONTROLLER_2_INSTANCE_ID=$(aws ec2 run-instances \
jq -r '.Instances[].InstanceId')
```
```
aws ec2 modify-instance-attribute \
--instance-id ${CONTROLLER_2_INSTANCE_ID} \
--no-source-dest-check
```
```
aws ec2 create-tags \
--resources ${CONTROLLER_2_INSTANCE_ID} \
@ -397,6 +417,12 @@ WORKER_0_INSTANCE_ID=$(aws ec2 run-instances \
jq -r '.Instances[].InstanceId')
```
```
aws ec2 modify-instance-attribute \
--instance-id ${WORKER_0_INSTANCE_ID} \
--no-source-dest-check
```
```
aws ec2 create-tags \
--resources ${WORKER_0_INSTANCE_ID} \
@ -417,6 +443,12 @@ WORKER_1_INSTANCE_ID=$(aws ec2 run-instances \
jq -r '.Instances[].InstanceId')
```
```
aws ec2 modify-instance-attribute \
--instance-id ${WORKER_1_INSTANCE_ID} \
--no-source-dest-check
```
```
aws ec2 create-tags \
--resources ${WORKER_1_INSTANCE_ID} \
@ -437,6 +469,12 @@ WORKER_2_INSTANCE_ID=$(aws ec2 run-instances \
jq -r '.Instances[].InstanceId')
```
```
aws ec2 modify-instance-attribute \
--instance-id ${WORKER_2_INSTANCE_ID} \
--no-source-dest-check
```
```
aws ec2 create-tags \
--resources ${WORKER_2_INSTANCE_ID} \