Skip to content

Commit

Permalink
Prepare 1.4.0 release (ansible-collections#254)
Browse files Browse the repository at this point in the history
* Prepare 1.4.0 release
  • Loading branch information
jillr authored Feb 5, 2021
1 parent d9e591f commit 8bbf81b
Show file tree
Hide file tree
Showing 19 changed files with 213 additions and 39 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ community.aws Release Notes
.. contents:: Topics


v1.4.0
======

Minor Changes
-------------

- aws_ec2 - Add hostname options concatenation
- aws_ec2 inventory plugin - avoid a superfluous import of ``ansible.utils.display.Display`` (https://github.com/ansible-collections/amazon.aws/pull/226).
- aws_ec2 module - Replace inverse aws instance-state-name filters !terminated, !shutting-down in favor of postive filters pending, running, stopping, stopped. Issue 235. (https://github.com/ansible-collections/amazon.aws/pull/237)
- aws_secret - add ``bypath`` functionality (https://github.com/ansible-collections/amazon.aws/pull/192).
- ec2_key - add AWSRetry decorator to automatically retry on common temporary failures (https://github.com/ansible-collections/amazon.aws/pull/213).
- ec2_vol - Add support for gp3 volumes and support for modifying existing volumes (https://github.com/ansible-collections/amazon.aws/issues/55).
- module_utils/elbv2 - add logic to compare_rules to suit Values list nested within dicts unique to each field type. Fixes issue (https://github.com/ansible-collections/amazon.aws/issues/187)
- various AWS plugins and module_utils - Cleanup unused imports (https://github.com/ansible-collections/amazon.aws/pull/217).

Bugfixes
--------

- ec2_vol - a creation or update now returns a structure with an up to date list of tags (https://github.com/ansible-collections/amazon.aws/pull/241).

v1.3.0
======

Expand Down
31 changes: 31 additions & 0 deletions changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,34 @@ releases:
- 211-fix-error-handling-during-tagging-failure.yaml
- 53-ec2_vol-boto3-port.yml
release_date: '2020-12-10'
1.4.0:
changes:
bugfixes:
- ec2_vol - a creation or update now returns a structure with an up to date
list of tags (https://github.com/ansible-collections/amazon.aws/pull/241).
minor_changes:
- aws_ec2 - Add hostname options concatenation
- aws_ec2 inventory plugin - avoid a superfluous import of ``ansible.utils.display.Display``
(https://github.com/ansible-collections/amazon.aws/pull/226).
- aws_ec2 module - Replace inverse aws instance-state-name filters !terminated,
!shutting-down in favor of postive filters pending, running, stopping, stopped.
Issue 235. (https://github.com/ansible-collections/amazon.aws/pull/237)
- aws_secret - add ``bypath`` functionality (https://github.com/ansible-collections/amazon.aws/pull/192).
- ec2_key - add AWSRetry decorator to automatically retry on common temporary
failures (https://github.com/ansible-collections/amazon.aws/pull/213).
- ec2_vol - Add support for gp3 volumes and support for modifying existing volumes
(https://github.com/ansible-collections/amazon.aws/issues/55).
- module_utils/elbv2 - add logic to compare_rules to suit Values list nested
within dicts unique to each field type. Fixes issue (https://github.com/ansible-collections/amazon.aws/issues/187)
- various AWS plugins and module_utils - Cleanup unused imports (https://github.com/ansible-collections/amazon.aws/pull/217).
fragments:
- 188-httprequestmethodconfig-keyerror.yaml
- 192-aws_secret-bypath-option.yaml
- 213-ec2_key-retries.yml
- 215-gp3-and-change-support-for-ec2_vol.yaml
- 217-duplicate-imports.yml
- 226_avoid_extra_Display_import.yaml
- 237_replace_inverse_ec2_aws_filter.yaml
- 241_ec2_vol-returns-an-up-to-date-tag-dict-of-the-volume.yaml
- 25-aws_ec2-hostname-options-concatenation.yaml
release_date: '2021-02-05'

This file was deleted.

2 changes: 0 additions & 2 deletions changelogs/fragments/192-aws_secret-bypath-option.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions changelogs/fragments/213-ec2_key-retries.yml

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions changelogs/fragments/217-duplicate-imports.yml

This file was deleted.

3 changes: 0 additions & 3 deletions changelogs/fragments/226_avoid_extra_Display_import.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions changelogs/fragments/237_replace_inverse_ec2_aws_filter.yaml

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 5 additions & 1 deletion docs/amazon.aws.aws_ec2_inventory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ Parameters
<td>
<ul style="margin: 0; padding: 0"><b>Choices:</b>
<li>aws_ec2</li>
<li>amazon.aws.aws_ec2</li>
</ul>
</td>
<td>
Expand Down Expand Up @@ -578,7 +579,10 @@ Examples
- tag:Name=Tag1,Name=Tag2 # Return specific hosts only
- tag:CustomDNSName
- dns-name
- private-ip-address
- name: 'tag:Name=Tag1,Name=Tag2'
- name: 'private-ip-address'
separator: '_'
prefix: 'tag:Name'
# Example using constructed features to create groups and set ansible_host
plugin: aws_ec2
Expand Down
2 changes: 1 addition & 1 deletion docs/amazon.aws.aws_s3_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ Examples
mode: put
- name: PUT operation from a rendered template
aws_s3:
amazon.aws.aws_s3:
bucket: mybucket
object: /object.yaml
content: "{{ lookup('template', 'templates/object.yaml.j2') }}"
Expand Down
59 changes: 53 additions & 6 deletions docs/amazon.aws.aws_secret_lookup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ amazon.aws.aws_secret
Synopsis
--------
- Look up secrets stored in AWS Secrets Manager provided the caller has the appropriate permissions to read the secret.
- Lookup is based on the secret's `Name` value.
- Optional parameters can be passed into this lookup; `version_id` and `version_stage`
- Lookup is based on the secret's *Name* value.
- Optional parameters can be passed into this lookup; *version_id* and *version_stage*



Expand Down Expand Up @@ -142,6 +142,25 @@ Parameters
<div>The AWS security token if using temporary access and secret keys.</div>
</td>
</tr>
<tr>
<td colspan="1">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>bypath</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">boolean</span>
</div>
<div style="font-style: italic; font-size: small; color: darkgreen">added in 1.4.0</div>
</td>
<td>
<b>Default:</b><br/><div style="color: blue">"no"</div>
</td>
<td>
</td>
<td>
<div>A boolean to indicate whether the parameter is provided as a hierarchy.</div>
</td>
</tr>
<tr>
<td colspan="1">
<div class="ansibleOptionAnchor" id="parameter-"></div>
Expand All @@ -159,6 +178,26 @@ Parameters
<td>
<div>Join two or more entries to form an extended secret.</div>
<div>This is useful for overcoming the 4096 character limit imposed by AWS.</div>
<div>No effect when used with <em>bypath</em>.</div>
</td>
</tr>
<tr>
<td colspan="1">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>nested</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">boolean</span>
</div>
<div style="font-style: italic; font-size: small; color: darkgreen">added in 1.4.0</div>
</td>
<td>
<b>Default:</b><br/><div style="color: blue">"no"</div>
</td>
<td>
</td>
<td>
<div>A boolean to indicate the secret contains nested values.</div>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -275,23 +314,31 @@ Examples

.. code-block:: yaml
- name: Create RDS instance with aws_secret lookup for password param
- name: lookup secretsmanager secret in the current region
debug: msg="{{ lookup('amazon.aws.aws_secret', '/path/to/secrets', bypath=true) }}"
- name: Create RDS instance with aws_secret lookup for password param
rds:
command: create
instance_name: app-db
db_engine: MySQL
size: 10
instance_type: db.m1.small
username: dbadmin
password: "{{ lookup('aws_secret', 'DbSecret') }}"
password: "{{ lookup('amazon.aws.aws_secret', 'DbSecret') }}"
tags:
Environment: staging
- name: skip if secret does not exist
debug: msg="{{ lookup('aws_secret', 'secret-not-exist', on_missing='skip')}}"
debug: msg="{{ lookup('amazon.aws.aws_secret', 'secret-not-exist', on_missing='skip')}}"
- name: warn if access to the secret is denied
debug: msg="{{ lookup('aws_secret', 'secret-denied', on_denied='warn')}}"
debug: msg="{{ lookup('amazon.aws.aws_secret', 'secret-denied', on_denied='warn')}}"
- name: lookup secretsmanager secret in the current region using the nested feature
debug: msg="{{ lookup('amazon.aws.aws_secret', 'secrets.environments.production.password', nested=true) }}"
# The secret can be queried using the following syntax: `aws_secret_object_name.key1.key2.key3`.
# If an object is of the form `{"key1":{"key2":{"key3":1}}}` the query would return the value `1`.
Expand Down
4 changes: 2 additions & 2 deletions docs/amazon.aws.cloudformation_info_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ Common return values are documented `here <https://docs.ansible.com/ansible/late
<span style="color: purple">list</span>
</div>
</td>
<td>only if all_facts or stack_resourses is true and the stack exists</td>
<td>only if all_facts or stack_resources is true and the stack exists</td>
<td>
<div>Describes stack resources for the stack</div>
<br/>
Expand All @@ -547,7 +547,7 @@ Common return values are documented `here <https://docs.ansible.com/ansible/late
<span style="color: purple">dictionary</span>
</div>
</td>
<td>only if all_facts or stack_resourses is true and the stack exists</td>
<td>only if all_facts or stack_resources is true and the stack exists</td>
<td>
<div>Dictionary of stack resources keyed by the value of each resource &#x27;LogicalResourceId&#x27; parameter and corresponding value of each resource &#x27;PhysicalResourceId&#x27; parameter</div>
<br/>
Expand Down
45 changes: 43 additions & 2 deletions docs/amazon.aws.ec2_vol_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ Requirements
------------
The below requirements are needed on the host that executes this module.

- python >= 2.6
- boto
- boto3>=1.16.33
- python >= 2.6


Parameters
Expand Down Expand Up @@ -261,6 +262,26 @@ Parameters
<div>Specify the id of the KMS key to use.</div>
</td>
</tr>
<tr>
<td colspan="1">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>modify_volume</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">boolean</span>
</div>
<div style="font-style: italic; font-size: small; color: darkgreen">added in 1.4.0</div>
</td>
<td>
<ul style="margin: 0; padding: 0"><b>Choices:</b>
<li><div style="color: blue"><b>no</b>&nbsp;&larr;</div></li>
<li>yes</li>
</ul>
</td>
<td>
<div>The volume won&#x27;t be modify unless this key is <code>true</code>.</div>
</td>
</tr>
<tr>
<td colspan="1">
<div class="ansibleOptionAnchor" id="parameter-"></div>
Expand Down Expand Up @@ -380,6 +401,24 @@ Parameters
<div>tag:value pairs to add to the volume after creation.</div>
</td>
</tr>
<tr>
<td colspan="1">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>throughput</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">integer</span>
</div>
<div style="font-style: italic; font-size: small; color: darkgreen">added in 1.4.0</div>
</td>
<td>
</td>
<td>
<div>Volume throughput in MB/s.</div>
<div>This parameter is only valid for gp3 volumes.</div>
<div>Valid range is from 125 to 1000.</div>
</td>
</tr>
<tr>
<td colspan="1">
<div class="ansibleOptionAnchor" id="parameter-"></div>
Expand Down Expand Up @@ -430,10 +469,12 @@ Parameters
<li>io1</li>
<li>st1</li>
<li>sc1</li>
<li>gp3</li>
<li>io2</li>
</ul>
</td>
<td>
<div>Type of EBS volume; standard (magnetic), gp2 (SSD), io1 (Provisioned IOPS), st1 (Throughput Optimized HDD), sc1 (Cold HDD). &quot;Standard&quot; is the old EBS default and continues to remain the Ansible default for backwards compatibility.</div>
<div>Type of EBS volume; standard (magnetic), gp2 (SSD), gp3 (SSD), io1 (Provisioned IOPS), io2 (Provisioned IOPS), st1 (Throughput Optimized HDD), sc1 (Cold HDD). &quot;Standard&quot; is the old EBS default and continues to remain the Ansible default for backwards compatibility.</div>
</td>
</tr>
<tr>
Expand Down
36 changes: 36 additions & 0 deletions docs/amazon.aws.ec2_vpc_net_info_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,24 @@ Common return values are documented `here <https://docs.ansible.com/ansible/late
<br/>
</td>
</tr>
<tr>
<td class="elbow-placeholder">&nbsp;</td>
<td colspan="3">
<div class="ansibleOptionAnchor" id="return-"></div>
<b>dhcp_options_id</b>
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
<div style="font-size: small">
<span style="color: purple">string</span>
</div>
</td>
<td>always</td>
<td>
<div>The ID of the DHCP options associated with this VPC.</div>
<br/>
<div style="font-size: smaller"><b>Sample:</b></div>
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">dopt-12345678</div>
</td>
</tr>
<tr>
<td class="elbow-placeholder">&nbsp;</td>
<td colspan="3">
Expand Down Expand Up @@ -614,6 +632,24 @@ Common return values are documented `here <https://docs.ansible.com/ansible/late
<br/>
</td>
</tr>
<tr>
<td class="elbow-placeholder">&nbsp;</td>
<td colspan="3">
<div class="ansibleOptionAnchor" id="return-"></div>
<b>owner_id</b>
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
<div style="font-size: small">
<span style="color: purple">string</span>
</div>
</td>
<td>always</td>
<td>
<div>The AWS account which owns the VPC.</div>
<br/>
<div style="font-size: smaller"><b>Sample:</b></div>
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">123456789012</div>
</td>
</tr>
<tr>
<td class="elbow-placeholder">&nbsp;</td>
<td colspan="3">
Expand Down
Loading

0 comments on commit 8bbf81b

Please sign in to comment.