Skip to content

Commit

Permalink
Merge branch 'release-1.7.0'
Browse files Browse the repository at this point in the history
* release-1.7.0:
  Bumping version to 1.7.0
  Update completer test for new services
  Update changelog with new features
  Adding Amazon ECS examples.
  Add #1076 to the changelog
  fix minor typo, ACl -> ACL
  Add EMR fix to latest changes
  Update changelog with botocore fix
  Fix flake8 issues
  Change cwd test to use a tempdir
  Update changelog with latest fix
  Add test to verify no shadowed builtins
  Update changelog
  Update param docs to match actual EC2 docs
  • Loading branch information
AWS committed Jan 8, 2015
2 parents 24e6947 + a7656a6 commit 33eadef
Show file tree
Hide file tree
Showing 22 changed files with 557 additions and 46 deletions.
29 changes: 29 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,35 @@
CHANGELOG
=========

1.7.0
=====

* feature:``aws cloudhsm``: Add support for AWS CloudHSM.
* feature:``aws ecs``: Add support for ``aws ecs``, the Amazon EC2
Container Service (ECS)
* feature:``aws rds``: Add Encryption at Rest and CloudHSM Support.
* feature:``aws ec2``: Add Classic Link support
* feature:``aws cloudsearch``: Update ``aws cloudsearch`` command
to latest version
* bugfix:``aws cloudfront wait``: Fix issue where wait commands did not
stop waiting when a success state was reached.
(`botocore issue 426 <https://github.com/boto/botocore/pull/426>`_)
* bugfix:``aws ec2 run-instances``: Allow binary files to be passed to
``--user-data``
(`botocore issue 416 <https://github.com/boto/botocore/pull/416>`_)
* bugfix:``aws cloudsearchdomain suggest``: Add ``--suggest-query``
option to fix the argument being shadowed by the top level
``--query`` option.
(`issue 1068 <https://github.com/aws/aws-cli/pull/1068>`__)
* bugfix:``aws emr``: Fix issue with endpoints for ``eu-central-1`` and
``cn-north-1``
(`botocore issue 423 <https://github.com/boto/botocore/pull/423>`__)
* bugfix:``aws s3``: Fix issue where empty XML nodes are now parsed
as an empty string ``""`` instead of ``null``, which allows for
round tripping ``aws s3 get/put-bucket-lifecycle``
(`issue 1076 <https://github.com/aws/aws-cli/issues/1076>`__)


1.6.10
======

Expand Down
2 changes: 1 addition & 1 deletion awscli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"""
import os

__version__ = '1.6.10'
__version__ = '1.7.0'

#
# Get our data path to be added to botocore's search path
Expand Down
1 change: 1 addition & 0 deletions awscli/customizations/argrename.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
'emr.*.job-flow-ids': 'cluster-ids',
'emr.*.job-flow-id': 'cluster-id',
'cloudsearchdomain.search.query': 'search-query',
'cloudsearchdomain.suggest.query': 'suggest-query',
'sns.subscribe.endpoint': 'notification-endpoint',
'deploy.*.s-3-location': 's3-location',
'deploy.*.ec-2-tag-filters': 'ec2-tag-filters',
Expand Down
5 changes: 3 additions & 2 deletions awscli/customizations/ec2secgroupsimplify.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ def _add_docs(help_command, **kwargs):
'<p>Valid protocol values: <code>tcp</code>, '
'<code>udp</code>, <code>icmp</code></p>')
PORT_DOCS = ('<p>For TCP or UDP: The range of ports to allow.'
' A single integer or a range (min-max). You can '
'specify <code>all</code> to mean all ports</p>')
' A single integer or a range (min-max). A value of '
'<code>-1</code> indicates all ICMP codes for the '
'specified ICMP type.</p>')
CIDR_DOCS = '<p>The CIDR IP range.</p>'
SOURCEGROUP_DOCS = ('<p>The name or ID of the source security group. '
'Cannot be used when specifying a CIDR IP address.')
Expand Down
2 changes: 1 addition & 1 deletion awscli/customizations/s3/subcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
'authenticated-read', 'bucket-owner-read',
'bucket-owner-full-control', 'log-delivery-write'],
'help_text': (
"Sets the ACl for the object when the command is "
"Sets the ACL for the object when the command is "
"performed. Only accepts values of ``private``, ``public-read``, "
"``public-read-write``, ``authenticated-read``, "
"``bucket-owner-read``, ``bucket-owner-full-control`` and "
Expand Down
17 changes: 17 additions & 0 deletions awscli/examples/ecs/create-cluster.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
**To create a new cluster**

This example command creates a cluster in your default region.

Command::

aws ecs create-cluster --cluster-name "dev_preview"

Output::

{
"cluster": {
"clusterName": "dev_preview",
"status": "ACTIVE",
"clusterArn": "arn:aws:ecs:us-west-2:<aws_account_id>:cluster/dev_preview"
}
}
7 changes: 7 additions & 0 deletions awscli/examples/ecs/deregister-container-instance.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**To deregister a container instance from a cluster**

This example deregisters a container instance from the specified cluster in your default region. If there are still tasks running on the container instance, you must either stop those tasks before deregistering, or use the force option.

Command::

aws ecs deregister-container-instance --cluster default --container-instance <container_instance_UUID> --force
20 changes: 20 additions & 0 deletions awscli/examples/ecs/describe-cluster.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
**To describe a cluster**

This example command provides a description of the specified cluster in your default region.

Command::

aws ecs describe-cluster --cluster default

Output::

{
"clusters": [
{
"clusterName": "default",
"status": "ACTIVE",
"clusterArn": "arn:aws:ecs:us-west-2:<aws_account_id>:cluster/default"
}
],
"failures": []
}
52 changes: 52 additions & 0 deletions awscli/examples/ecs/describe-container-instance.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
**To describe container instance**

This example command provides a description of the specified container instance in your default region, using the container instance UUID as an identifier.

Command::

aws ecs describe-container-instance --cluster default --container-instance f6bbb147-5370-4ace-8c73-c7181ded911f

Output::

{
"failures": [],
"containerInstances": [
{
"status": "ACTIVE",
"remainingResources": [
{
"integerValue": 32748,
"longValue": 0,
"type": "INTEGER",
"name": "CPU",
"doubleValue": 0.0
},
{
"integerValue": 60377,
"longValue": 0,
"type": "INTEGER",
"name": "MEMORY",
"doubleValue": 0.0
}
],
"registeredResources": [
{
"integerValue": 32768,
"longValue": 0,
"type": "INTEGER",
"name": "CPU",
"doubleValue": 0.0
},
{
"integerValue": 60397,
"longValue": 0,
"type": "INTEGER",
"name": "MEMORY",
"doubleValue": 0.0
}
],
"containerInstanceArn": "arn:aws:ecs:us-west-2:<aws_account_id>:container-instance/f6bbb147-5370-4ace-8c73-c7181ded911f",
"ec2InstanceId": "i-0f51df05"
}
]
}
66 changes: 66 additions & 0 deletions awscli/examples/ecs/describe-task-definition.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
**To describe a task definition**

This example command provides a description of the specified task definition.

Command::

aws ecs describe-task-definition --task-definition wordpress:6

Output::

{
"taskDefinition": {
"taskDefinitionArn": "arn:aws:ecs:us-west-2:<aws_account_id>:task-definition/wordpress:6",
"containerDefinitions": [
{
"environment": [
{
"name": "DB_USER",
"value": "root"
},
{
"name": "DB_PASS",
"value": "pass"
}
],
"name": "wordpress",
"links": [
"db"
],
"image": "tutum/wordpress-stackable",
"essential": true,
"portMappings": [
{
"containerPort": 80,
"hostPort": 80
}
],
"entryPoint": [
"/bin/sh",
"-c"
],
"memory": 500,
"cpu": 10
},
{
"environment": [
{
"name": "MYSQL_ROOT_PASSWORD",
"value": "pass"
}
],
"name": "db",
"image": "mysql",
"cpu": 10,
"portMappings": [],
"entryPoint": [
"/entrypoint.sh"
],
"memory": 500,
"essential": true
}
],
"family": "wordpress",
"revision": 6
}
}
37 changes: 37 additions & 0 deletions awscli/examples/ecs/describe-task.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
**To describe a task**

This example command provides a description of the specified task, using the task UUID as an identifier.

Command::

aws ecs describe-task --cluster default --task 0cc43cdb-3bee-4407-9c26-c0e6ea5bee84

Output::

{
"failures": [],
"tasks": [
{
"taskArn": "arn:aws:ecs:us-west-2:<aws_account_id>:task/0cc43cdb-3bee-4407-9c26-c0e6ea5bee84",
"overrides": {
"containerOverrides": [
{
"name": "sleep"
}
]
},
"lastStatus": "PENDING",
"containerInstanceArn": "arn:aws:ecs:us-west-2:<aws_account_id>:container-instance/f6bbb147-5370-4ace-8c73-c7181ded911f",
"desiredStatus": "RUNNING",
"taskDefinitionArn": "arn:aws:ecs:us-west-2:<aws_account_id>:task-definition/sleep360:1",
"containers": [
{
"containerArn": "arn:aws:ecs:us-west-2:<aws_account_id>:container/291bb057-f49c-4bd7-9b50-9c891359083b",
"taskArn": "arn:aws:ecs:us-west-2:<aws_account_id>:task/0cc43cdb-3bee-4407-9c26-c0e6ea5bee84",
"lastStatus": "PENDING",
"name": "sleep"
}
]
}
]
}
17 changes: 17 additions & 0 deletions awscli/examples/ecs/list-clusters.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
**To list your available clusters**

This example command lists all of your available clusters in your default region.

Command::

aws ecs list-clusters

Output::

{
"clusterArns": [
"arn:aws:ecs:us-west-2:<aws_account_id>:cluster/test",
"arn:aws:ecs:us-west-2:<aws_account_id>:cluster/default",
"arn:aws:ecs:us-west-2:<aws_account_id>:cluster/My test cluster"
]
}
16 changes: 16 additions & 0 deletions awscli/examples/ecs/list-container-instances.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
**To list your available container instances in a cluster**

This example command lists all of your available container instances in the specified cluster in your default region.

Command::

aws ecs list-container-instances --cluster default

Output::

{
"containerInstanceArns": [
"arn:aws:ecs:us-west-2:<aws_account_id>:container-instance/f6bbb147-5370-4ace-8c73-c7181ded911f",
"arn:aws:ecs:us-west-2:<aws_account_id>:container-instance/ffe3d344-77e2-476c-a4d0-bf560ad50acb"
]
}
39 changes: 39 additions & 0 deletions awscli/examples/ecs/list-task-definitions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
**To list your registered task definitions**

This example command lists all of your registered task definitions.

Command::

aws ecs list-task-definitions

Output::

{
"taskDefinitionArns": [
"arn:aws:ecs:us-west-2:<aws_account_id>:task-definition/sleep300:2",
"arn:aws:ecs:us-west-2:<aws_account_id>:task-definition/sleep360:1",
"arn:aws:ecs:us-west-2:<aws_account_id>:task-definition/wordpress:3",
"arn:aws:ecs:us-west-2:<aws_account_id>:task-definition/wordpress:4",
"arn:aws:ecs:us-west-2:<aws_account_id>:task-definition/wordpress:5",
"arn:aws:ecs:us-west-2:<aws_account_id>:task-definition/wordpress:6"
]
}

**To list the registered task definitions in a family**

This example command lists the task definition revisions of a specified family.

Command::

aws ecs list-task-definitions --family-prefix wordpress

Output::

{
"taskDefinitionArns": [
"arn:aws:ecs:us-west-2:<aws_account_id>:task-definition/wordpress:3",
"arn:aws:ecs:us-west-2:<aws_account_id>:task-definition/wordpress:4",
"arn:aws:ecs:us-west-2:<aws_account_id>:task-definition/wordpress:5",
"arn:aws:ecs:us-west-2:<aws_account_id>:task-definition/wordpress:6"
]
}
32 changes: 32 additions & 0 deletions awscli/examples/ecs/list-tasks.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
**To list the tasks in a cluster**

This example command lists all of the tasks in a cluster.

Command::

aws ecs list-tasks --cluster default

Output::

{
"taskArns": [
"arn:aws:ecs:us-west-2:<aws_account_id>:task/0cc43cdb-3bee-4407-9c26-c0e6ea5bee84",
"arn:aws:ecs:us-west-2:<aws_account_id>:task/6b809ef6-c67e-4467-921f-ee261c15a0a1"
]
}

**To list the tasks on a particular container instance**

This example command lists the tasks of a specified container instance, using the container instance UUID as a filter.

Command::

aws ecs list-tasks --cluster default --container-instance f6bbb147-5370-4ace-8c73-c7181ded911f

Output::

{
"taskArns": [
"arn:aws:ecs:us-west-2:<aws_account_id>:task/0cc43cdb-3bee-4407-9c26-c0e6ea5bee84"
]
}
Loading

0 comments on commit 33eadef

Please sign in to comment.