-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[PR #1172/06cecace backport][stable-5] Cleanup shared 'EC2' parameters This is a backport of PR #1172 as merged into main (06cecac). SUMMARY As seen in both #1170 and ansible-collections/community.aws#1458 the "EC2_" prefix for a number of fall-back environment variables results in confusion. "EC2_" implies it's specific to the EC2 API, not all of AWS. Deprecates the ec2_ parameter aliases Deprecates the EC2_ environment variables Deprecates the security_token/aws_security_token/access_token parameter aliases which were based on the original boto parameter names ISSUE TYPE Feature Pull Request COMPONENT NAME plugins/module_utils/botocore.py plugins/module_utils/modules.py ADDITIONAL INFORMATION Reviewed-by: Mark Chappell <None>
- Loading branch information
1 parent
22d6dd8
commit 469b675
Showing
8 changed files
with
300 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
minor_changes: | ||
- amazon.aws collection - The ``aws_access_key`` parameter has been renamed to ``access_key``, | ||
``access_key`` was previously an alias for this parameter and ``aws_access_key`` remains as an | ||
alias. This change should have no observable effect for users outside the module/plugin documentation. | ||
(https://github.com/ansible-collections/amazon.aws/pull/1172). | ||
- amazon.aws collection - The ``aws_secret_key`` parameter has been renamed to ``secret_key``, | ||
``secret_key`` was previously an alias for this parameter and ``aws_secret_key`` remains as an | ||
alias. This change should have no observable effect for users outside the module/plugin documentation. | ||
(https://github.com/ansible-collections/amazon.aws/pull/1172). | ||
- amazon.aws collection - The ``security_token`` parameter has been renamed to ``session_token``, | ||
``security_token`` was previously an alias for this parameter and ``security_token`` remains as an | ||
alias. This change should have no observable effect for users outside the module/plugin documentation. | ||
(https://github.com/ansible-collections/amazon.aws/pull/1172). | ||
|
||
deprecated_features: | ||
- amazon.aws collection - The ``ec2_access_key`` alias for the ``access_key`` parameter has been | ||
deprecated and will be removed in a release after 2024-12-01. Please use the ``access_key`` | ||
name instead (https://github.com/ansible-collections/amazon.aws/pull/1172). | ||
- amazon.aws collection - The ``ec2_secret_key`` alias for the ``secret_key`` parameter has been | ||
deprecated and will be removed in a release after 2024-12-01. Please use the ``secret_key`` | ||
name instead (https://github.com/ansible-collections/amazon.aws/pull/1172). | ||
- amazon.aws collection - The ``access_token`` alias for the ``session_token`` parameter has been | ||
deprecated and will be removed in a release after 2024-12-01. Please use the ``session_token`` | ||
name instead (https://github.com/ansible-collections/amazon.aws/pull/1172). | ||
- amazon.aws collection - The ``security_token`` alias for the ``session_token`` parameter has been | ||
deprecated and will be removed in a release after 2024-12-01. Please use the ``session_token`` | ||
name instead (https://github.com/ansible-collections/amazon.aws/pull/1172). | ||
- amazon.aws collection - The ``aws_security_token`` alias for the ``session_token`` parameter has | ||
been deprecated and will be removed in a release after 2024-12-01. Please use the | ||
``session_token`` name instead (https://github.com/ansible-collections/amazon.aws/pull/1172). | ||
- amazon.aws collection - The ``access_token`` alias for the ``session_token`` parameter has | ||
been deprecated and will be removed in a release after 2024-12-01. Please use the | ||
``session_token`` name instead (https://github.com/ansible-collections/amazon.aws/pull/1172). | ||
- amazon.aws collection - The ``ec2_region`` alias for the ``region`` parameter has | ||
been deprecated and will be removed in a release after 2024-12-01. Please use the | ||
``region`` name instead (https://github.com/ansible-collections/amazon.aws/pull/1172). | ||
|
||
- amazon.aws collection - Support for the ``EC2_URL`` and ``S3_URL`` environment variables has | ||
been deprecated and will be removed in a release after 2024-12-01. Please use the | ||
``endpoint_url`` parameter or ``AWS_ENDPOINT_URL`` environment variable instead | ||
(https://github.com/ansible-collections/amazon.aws/pull/1172). | ||
- amazon.aws collection - Support for the ``EC2_REGION`` environment variable has | ||
been deprecated and will be removed in a release after 2024-12-01. Please use the | ||
``region`` parameter or ``AWS_REGION`` environment variable instead | ||
(https://github.com/ansible-collections/amazon.aws/pull/1172). | ||
- amazon.aws collection - Support for the ``EC2_SECURITY_TOKEN`` environment variable has | ||
been deprecated and will be removed in a release after 2024-12-01. Please use the | ||
``session_token`` parameter or ``AWS_SESSION_TOKEN`` environment variable instead | ||
(https://github.com/ansible-collections/amazon.aws/pull/1172). | ||
- amazon.aws collection - Support for the ``EC2_SECRET_KEY`` environment variable has | ||
been deprecated and will be removed in a release after 2024-12-01. Please use the | ||
``secret_key`` parameter or ``AWS_SECRET_ACCESS_KEY`` environment variable instead | ||
(https://github.com/ansible-collections/amazon.aws/pull/1172). | ||
- amazon.aws collection - Support for the ``EC2_ACCESS_KEY`` environment variable has | ||
been deprecated and will be removed in a release after 2024-12-01. Please use the | ||
``access_key`` parameter or ``AWS_ACCESS_KEY_ID`` environment variable instead | ||
(https://github.com/ansible-collections/amazon.aws/pull/1172). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.