Skip to content

Commit 3d846fe

Browse files
author
AWS
committed
Merge branch 'release-1.10.25'
* release-1.10.25: Bumping version to 1.10.25 Update changelog based on model updates replace non-ascii characters Update error messaging Flush stdout after input prompt. new and updated ec2 examples formatting Direct Connect examples Add additional check for boolean arguments Fix issue with boolean argument translations formatting updated configservice put-delivery-channel example Adding -t option to emr ssh command when using certificate
2 parents 780cb64 + 535c14a commit 3d846fe

36 files changed

+604
-31
lines changed

.changes/1.10.25.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[
2+
{
3+
"category": "``inspector``",
4+
"description": "Update inspector command to latest version",
5+
"type": "feature"
6+
},
7+
{
8+
"category": "``codepipeline``",
9+
"description": "Update codepipeline command to latest version",
10+
"type": "feature"
11+
},
12+
{
13+
"category": "Configure",
14+
"description": "Fix issue causing prompts not to display on mintty. Fixes `#1925 <https://github.com/aws/aws-cli/issues/1925>`__",
15+
"type": "bugfix"
16+
},
17+
{
18+
"category": "``elasticbeanstalk``",
19+
"description": "Update elasticbeanstalk command to latest version",
20+
"type": "feature"
21+
}
22+
]

CHANGELOG.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
CHANGELOG
33
=========
44

5+
1.10.25
6+
=======
7+
8+
* feature:``inspector``: Update inspector command to latest version
9+
* feature:``codepipeline``: Update codepipeline command to latest version
10+
* bugfix:Configure: Fix issue causing prompts not to display on mintty. Fixes `#1925 <https://github.com/aws/aws-cli/issues/1925>`__
11+
* feature:``elasticbeanstalk``: Update elasticbeanstalk command to latest version
12+
13+
514
1.10.24
615
=======
716

awscli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"""
1818
import os
1919

20-
__version__ = '1.10.24'
20+
__version__ = '1.10.25'
2121

2222
#
2323
# Get our data path to be added to botocore's search path

awscli/clidocs.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,22 @@ def build_translation_map(self):
304304
d = {}
305305
for cli_name, cli_argument in self.help_command.arg_table.items():
306306
if cli_argument.argument_model is not None:
307-
d[cli_argument.argument_model.name] = cli_name
307+
argument_name = cli_argument.argument_model.name
308+
if argument_name in d:
309+
previous_mapping = d[argument_name]
310+
# If the argument name is a boolean argument, we want the
311+
# the translation to default to the one that does not start
312+
# with --no-. So we check if the cli parameter currently
313+
# being used starts with no- and if stripping off the no-
314+
# results in the new proposed cli argument name. If it
315+
# does, we assume we have the postive form of the argument
316+
# which is the name we want to use in doc translations.
317+
if cli_argument.cli_type_name == 'boolean' and \
318+
previous_mapping.startswith('no-') and \
319+
cli_name == previous_mapping[3:]:
320+
d[argument_name] = cli_name
321+
else:
322+
d[argument_name] = cli_name
308323
for operation_name in operation_model.service_model.operation_names:
309324
d[operation_name] = xform_name(operation_name, '-')
310325
return d

awscli/compat.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,20 @@ def compat_open(filename, mode='r', encoding=None):
105105
if 'b' not in mode:
106106
encoding = locale.getpreferredencoding()
107107
return io.open(filename, mode, encoding=encoding)
108+
109+
110+
def compat_input(prompt):
111+
"""
112+
Cygwin's pty's are based on pipes. Therefore, when it interacts with a Win32
113+
program (such as Win32 python), what that program sees is a pipe instead of
114+
a console. This is important because python buffers pipes, and so on a
115+
pty-based terminal, text will not necessarily appear immediately. In most
116+
cases, this isn't a big deal. But when we're doing an interactive prompt,
117+
the result is that the prompts won't display until we fill the buffer. Since
118+
raw_input does not flush the prompt, we need to manually write and flush it.
119+
120+
See https://github.com/mintty/mintty/issues/56 for more details.
121+
"""
122+
sys.stdout.write(prompt)
123+
sys.stdout.flush()
124+
return raw_input()

awscli/customizations/awslambda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from awscli.customizations import utils
2121

2222
ERROR_MSG = (
23-
"--zip-file must be a file with the fileb:// prefix.\n"
23+
"--zip-file must be a zip file with the fileb:// prefix.\n"
2424
"Example usage: --zip-file fileb://path/to/file.zip")
2525

2626
ZIP_DOCSTRING = ('<p>The path to the zip file of the code you are uploading. '

awscli/customizations/configure/configure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from botocore.exceptions import ProfileNotFound
1717

18-
from awscli.compat import raw_input
18+
from awscli.compat import compat_input
1919
from awscli.customizations.commands import BasicCommand
2020
from awscli.customizations.configure.addmodel import AddModelCommand
2121
from awscli.customizations.configure.set import ConfigureSetCommand
@@ -39,7 +39,7 @@ class InteractivePrompter(object):
3939
def get_value(self, current_value, config_name, prompt_text=''):
4040
if config_name in ('aws_access_key_id', 'aws_secret_access_key'):
4141
current_value = mask_value(current_value)
42-
response = raw_input("%s [%s]: " % (prompt_text, current_value))
42+
response = compat_input("%s [%s]: " % (prompt_text, current_value))
4343
if not response:
4444
# If the user hits enter, we return a value of None
4545
# instead of an empty string. That way we can determine

awscli/customizations/emr/ssh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def _run_main_command(self, parsed_args, parsed_globals):
8989
command = ['ssh', '-o', 'StrictHostKeyChecking=no', '-o',
9090
'ServerAliveInterval=10', '-i',
9191
parsed_args.key_pair_file, constants.SSH_USER +
92-
'@' + master_dns]
92+
'@' + master_dns, '-t']
9393
if parsed_args.command:
9494
command.append(parsed_args.command)
9595
else:

awscli/examples/configservice/put-delivery-channel.rst

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,39 @@ The following command provides the settings for the delivery channel as JSON cod
44

55
aws configservice put-delivery-channel --delivery-channel file://deliveryChannel.json
66

7-
`deliveryChannel.json` is a JSON file that specifies the Amazon S3 bucket and Amazon SNS topic to which AWS Config will deliver configuration information::
7+
The ``deliveryChannel.json`` file specifies the delivery channel attributes::
88

99
{
1010
"name": "default",
1111
"s3BucketName": "config-bucket-123456789012",
12-
"snsTopicARN": "arn:aws:sns:us-east-1:123456789012:config-topic"
12+
"snsTopicARN": "arn:aws:sns:us-east-1:123456789012:config-topic",
13+
"configSnapshotDeliveryProperties": {
14+
"deliveryFrequency": "Twelve_Hours"
15+
},
1316
}
1417

18+
This example sets the following attributes:
19+
20+
- ``name`` - The name of the delivery channel. By default, AWS Config assigns the name ``default`` to a new delivery channel.
21+
22+
You cannot update the delivery channel name with the ``put-delivery-channel`` command. For the steps to change the name, see `Renaming the Delivery Channel`__.
23+
24+
.. __: http://docs.aws.amazon.com/config/latest/developerguide/update-dc.html#update-dc-rename
25+
26+
- ``s3BucketName`` - The name of the Amazon S3 bucket to which AWS Config delivers configuration snapshots and configuration history files.
27+
28+
If you specify a bucket that belongs to another AWS account, that bucket must have policies that grant access permissions to AWS Config. For more information, see `Permissions for the Amazon S3 Bucket`__.
29+
30+
.. __: http://docs.aws.amazon.com/config/latest/developerguide/s3-bucket-policy.html
31+
32+
- ``snsTopicARN`` - The Amazon Resource Name (ARN) of the Amazon SNS topic to which AWS Config sends notifications about configuration changes.
33+
34+
If you choose a topic from another account, the topic must have policies that grant access permissions to AWS Config. For more information, see `Permissions for the Amazon SNS Topic`__.
35+
36+
.. __: http://docs.aws.amazon.com/config/latest/developerguide/sns-topic-policy.html
37+
38+
- ``configSnapshotDeliveryProperties`` - Contains the ``deliveryFrequency`` attribute, which sets how often AWS Config delivers configuration snapshots and how often it invokes evaluations for periodic Config rules.
39+
1540
If the command succeeds, AWS Config returns no output. To verify the settings of your delivery channel, run the `describe-delivery-channels`__ command.
1641

1742
.. __: http://docs.aws.amazon.com/cli/latest/reference/configservice/describe-delivery-channels.html
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
**To create a hosted connection on an interconnect**
2+
3+
The following ``allocate-connection-on-interconnect`` command creates a hosted connection on an interconnect::
4+
5+
aws directconnect allocate-connection-on-interconnect --bandwidth 500Mbps --connection-name mydcinterconnect --owner-account 123456789012 --interconnect-id dxcon-fgktov66 --vlan 101
6+
7+
Output::
8+
9+
{
10+
"partnerName": "TIVIT",
11+
"vlan": 101,
12+
"ownerAccount": "123456789012",
13+
"connectionId": "dxcon-ffzc51m1",
14+
"connectionState": "ordering",
15+
"bandwidth": "500Mbps",
16+
"location": "TIVIT",
17+
"connectionName": "mydcinterconnect",
18+
"region": "sa-east-1"
19+
}

0 commit comments

Comments
 (0)