Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
* Update Weave Net to 1.8.1
* Update Weave Scope to the upcoming 1.1.0 release (weaveworks/scope#2033)
* Update base ECS images (including new Ohio region)
* Add documentation for new actions required for Scope ECS views
  • Loading branch information
Alfonso Acosta committed Nov 29, 2016
1 parent 7252d18 commit 81684fe
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 62 deletions.
30 changes: 19 additions & 11 deletions aws/ecs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ not remove it and respect the format! -->

| Region | AMI |
|----------------|--------------|
| us-east-1 | ami-3fc1b928 |
| us-west-1 | ami-4c2a642c |
| us-west-2 | ami-de08d4be |
| eu-west-1 | ami-dba2d8a8 |
| eu-central-1 | ami-81738eee |
| ap-northeast-1 | ami-4cbb692d |
| ap-southeast-1 | ami-bb6cc9d8 |
| ap-southeast-2 | ami-0de1d16e |
| us-east-1 | ?? |
| us-east-2 | ?? |
| us-west-1 | ?? |
| us-west-2 | ?? |
| eu-west-1 | ?? |
| eu-central-1 | ?? |
| ap-northeast-1 | ?? |
| ap-southeast-1 | ?? |
| ap-southeast-2 | ?? |


## What's in the Weave ECS AMIs?
Expand Down Expand Up @@ -64,9 +65,16 @@ Besides the customary Amazon ECS API actions required by all container instances
1. `ec2:DescribeInstances`
2. `ec2:DescribeTags`
3. `autoscaling:DescribeAutoScalingInstances`

These extra actions are needed for discovering instance peers. [`weave-ecs-policy.json`](https://github.com/weaveworks/guides/blob/41f1f5a60d39d39b78f0e06e224a7c3bad30c4e8/aws-ecs/data/weave-ecs-policy.json#L16-L18) (from the
[Weaveworks ECS guide](http://weave.works/guides/service-discovery-with-weave-aws-ecs.html)), describes the minimal policy definition.
4. `ecs:ListServices`
5. `ecs:DescribeTasks`
6. `ecs:DescribeServices`

These extra actions are needed for discovering instance peers (1,2,3) and
creating the ECS views in Weave Scope
(4,5,6). [`weave-ecs-policy.json`](https://github.com/weaveworks/guides/blob/41f1f5a60d39d39b78f0e06e224a7c3bad30c4e8/aws-ecs/data/weave-ecs-policy.json#L16-L18)
(from the
[Weaveworks ECS guide](http://weave.works/guides/service-discovery-with-weave-aws-ecs.html)),
describes the minimal policy definition.

For more information on IAM policies see
[IAM Policies for Amazon EC2](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-policies-for-amazon-ec2.html).
Expand Down
23 changes: 13 additions & 10 deletions aws/ecs/cloudformation-identiorca.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,28 +55,31 @@
},
"WeaveworksEcsAmiIds": {
"us-east-1": {
"ImageId": "ami-3d55272a"
"ImageId": "ami-eca289fb"
},
"us-east-2": {
"ImageId": "ami-446f3521"
},
"us-west-1": {
"ImageId": "ami-444d0224"
"ImageId": "ami-9fadf8ff"
},
"us-west-2": {
"ImageId": "ami-1ccd1f7c"
"ImageId": "ami-7abc111a"
},
"eu-west-1": {
"ImageId": "ami-b6760fc5"
"ImageId": "ami-a1491ad2"
},
"eu-central-1": {
"ImageId": "ami-f562909a"
"ImageId": "ami-54f5303b"
},
"ap-northeast-1": {
"ImageId": "ami-096cba68"
"ImageId": "ami-9cd57ffd"
},
"ap-southeast-1": {
"ImageId": "ami-7934ee1a"
"ImageId": "ami-a900a3ca"
},
"ap-southeast-2": {
"ImageId": "ami-22a49541"
"ImageId": "ami-5781be34"
}
}
},
Expand Down Expand Up @@ -652,7 +655,7 @@
"/",
[
"https://github.com/weaveworks/weave/releases/download",
"v1.7.2",
"v1.8.1",
"weave"
]
]
Expand All @@ -665,7 +668,7 @@
"/",
[
"https://github.com/weaveworks/scope/releases/download",
"v0.17.1",
"v1.1.0",
"scope"
]
]
Expand Down
23 changes: 13 additions & 10 deletions aws/ecs/cloudformation-larger-app.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,31 @@
},
"WeaveworksEcsAmiIds": {
"us-east-1": {
"ImageId": "ami-3d55272a"
"ImageId": "ami-eca289fb"
},
"us-east-2": {
"ImageId": "ami-446f3521"
},
"us-west-1": {
"ImageId": "ami-444d0224"
"ImageId": "ami-9fadf8ff"
},
"us-west-2": {
"ImageId": "ami-1ccd1f7c"
"ImageId": "ami-7abc111a"
},
"eu-west-1": {
"ImageId": "ami-b6760fc5"
"ImageId": "ami-a1491ad2"
},
"eu-central-1": {
"ImageId": "ami-f562909a"
"ImageId": "ami-54f5303b"
},
"ap-northeast-1": {
"ImageId": "ami-096cba68"
"ImageId": "ami-9cd57ffd"
},
"ap-southeast-1": {
"ImageId": "ami-7934ee1a"
"ImageId": "ami-a900a3ca"
},
"ap-southeast-2": {
"ImageId": "ami-22a49541"
"ImageId": "ami-5781be34"
}
}
},
Expand Down Expand Up @@ -110,12 +113,12 @@
"WeaveNetVersion": {
"Type": "String",
"Description": "Version of Weave Net to install",
"Default": "v1.7.2"
"Default": "v1.8.1"
},
"WeaveScopeVersion": {
"Type": "String",
"Description": "Version of Weave Scope to install",
"Default": "v0.17.1"
"Default": "v1.1.0"
}
},
"Conditions": {
Expand Down
23 changes: 13 additions & 10 deletions aws/ecs/cloudformation-no-app.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,31 @@
},
"WeaveworksEcsAmiIds": {
"us-east-1": {
"ImageId": "ami-3d55272a"
"ImageId": "ami-eca289fb"
},
"us-east-2": {
"ImageId": "ami-446f3521"
},
"us-west-1": {
"ImageId": "ami-444d0224"
"ImageId": "ami-9fadf8ff"
},
"us-west-2": {
"ImageId": "ami-1ccd1f7c"
"ImageId": "ami-7abc111a"
},
"eu-west-1": {
"ImageId": "ami-b6760fc5"
"ImageId": "ami-a1491ad2"
},
"eu-central-1": {
"ImageId": "ami-f562909a"
"ImageId": "ami-54f5303b"
},
"ap-northeast-1": {
"ImageId": "ami-096cba68"
"ImageId": "ami-9cd57ffd"
},
"ap-southeast-1": {
"ImageId": "ami-7934ee1a"
"ImageId": "ami-a900a3ca"
},
"ap-southeast-2": {
"ImageId": "ami-22a49541"
"ImageId": "ami-5781be34"
}
}
},
Expand Down Expand Up @@ -536,7 +539,7 @@
"/",
[
"https://github.com/weaveworks/weave/releases/download",
"v1.7.2",
"v1.8.1",
"weave"
]
]
Expand All @@ -549,7 +552,7 @@
"/",
[
"https://github.com/weaveworks/scope/releases/download",
"v0.17.1",
"v1.1.0",
"scope"
]
]
Expand Down
23 changes: 13 additions & 10 deletions aws/ecs/cloudformation.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,31 @@
},
"WeaveworksEcsAmiIds": {
"us-east-1": {
"ImageId": "ami-3d55272a"
"ImageId": "ami-eca289fb"
},
"us-east-2": {
"ImageId": "ami-446f3521"
},
"us-west-1": {
"ImageId": "ami-444d0224"
"ImageId": "ami-9fadf8ff"
},
"us-west-2": {
"ImageId": "ami-1ccd1f7c"
"ImageId": "ami-7abc111a"
},
"eu-west-1": {
"ImageId": "ami-b6760fc5"
"ImageId": "ami-a1491ad2"
},
"eu-central-1": {
"ImageId": "ami-f562909a"
"ImageId": "ami-54f5303b"
},
"ap-northeast-1": {
"ImageId": "ami-096cba68"
"ImageId": "ami-9cd57ffd"
},
"ap-southeast-1": {
"ImageId": "ami-7934ee1a"
"ImageId": "ami-a900a3ca"
},
"ap-southeast-2": {
"ImageId": "ami-22a49541"
"ImageId": "ami-5781be34"
}
}
},
Expand Down Expand Up @@ -110,12 +113,12 @@
"WeaveNetVersion": {
"Type": "String",
"Description": "Version of Weave Net to install",
"Default": "v1.7.2"
"Default": "v1.8.1"
},
"WeaveScopeVersion": {
"Type": "String",
"Description": "Version of Weave Scope to install",
"Default": "v0.17.1"
"Default": "v1.1.0"
}
},
"Conditions": {
Expand Down
17 changes: 9 additions & 8 deletions aws/ecs/packer/build-all-amis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ if [ -z "${AWS_ACCESS_KEY_ID+x}" -a -z "${AWS_SECRET_ACCESS_KEY+x}" ]; then
fi

# Taken from http://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html
BASE_AMIS=('us-east-1:ami-3d55272a'
'us-west-1:ami-444d0224'
'us-west-2:ami-1ccd1f7c'
'eu-west-1:ami-b6760fc5'
'eu-central-1:ami-f562909a'
'ap-northeast-1:ami-096cba68'
'ap-southeast-1:ami-7934ee1a'
'ap-southeast-2:ami-22a49541'
BASE_AMIS=('us-east-1:ami-eca289fb'
'us-east-2:ami-446f3521'
'us-west-1:ami-9fadf8ff'
'us-west-2:ami-7abc111a'
'eu-west-1:ami-a1491ad2'
'eu-central-1:ami-54f5303b'
'ap-northeast-1:ami-9cd57ffd'
'ap-southeast-1:ami-a900a3ca'
'ap-southeast-2:ami-5781be34'
)

# Mimic associative arrays using ":" to compose keys and values,
Expand Down
6 changes: 3 additions & 3 deletions aws/ecs/packer/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@
"sudo yum -y install python-pip jq",
"sudo python-pip install awscli",

"sudo curl -L https://github.com/weaveworks/weave/releases/download/v1.7.2/weave -o /usr/local/bin/weave",
"sudo curl -L https://github.com/weaveworks/weave/releases/download/v1.8.1/weave -o /usr/local/bin/weave",
"sudo chmod +x /usr/local/bin/weave",
"sudo /usr/local/bin/weave setup",

"sudo curl -L https://github.com/weaveworks/scope/releases/download/v0.17.1/scope -o /usr/local/bin/scope",
"sudo curl -L https://github.com/weaveworks/scope/releases/download/v1.1.0/scope -o /usr/local/bin/scope",
"sudo chmod +x /usr/local/bin/scope",
"docker pull weaveworks/scope:0.17.1",
"docker pull weaveworks/scope:1.1.0",


"sudo mv /home/ec2-user/weave.conf /etc/init/weave.conf",
Expand Down

0 comments on commit 81684fe

Please sign in to comment.