Skip to content

Deprecate datapipeline create-default-roles#6678

Merged
stealthycoin merged 1 commit intoaws:developfrom
joguSD:deprecate-create-default-roles
Feb 1, 2022
Merged

Deprecate datapipeline create-default-roles#6678
stealthycoin merged 1 commit intoaws:developfrom
joguSD:deprecate-create-default-roles

Conversation

@joguSD
Copy link
Copy Markdown
Contributor

@joguSD joguSD commented Jan 27, 2022

Support for the underlying managed policies will be deprecated with no replacement meaning this custom command will no longer function properly if the roles do not already exist. This removes the command from the documentation and prints a warning notice that the command has been deprecated.

Copy link
Copy Markdown
Contributor

@nateprewitt nateprewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to also update the tests to capture the warning with pytest.warns or @pytest.mark.filterwarnings.

tests/unit/customizations/datapipeline/test_create_default_role.py::TestCreateDefaultRole::test_constructed_result
tests/unit/customizations/datapipeline/test_create_default_role.py::TestCreateDefaultRole::test_default_roles_exist
tests/unit/customizations/datapipeline/test_create_default_role.py::TestCreateDefaultRole::test_default_roles_not_exist
  /home/runner/work/aws-cli/aws-cli/awscli/customizations/datapipeline/createdefaultroles.py:75: UserWarning: 
  Support for this command has been deprecated and may fail to create these roles
  if they do not already exist.
  
    warnings.warn(_DEPRECATION_NOTICE)

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jan 27, 2022

Codecov Report

Merging #6678 (d8a19c0) into develop (d1d2e5e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #6678   +/-   ##
========================================
  Coverage    92.84%   92.85%           
========================================
  Files          204      204           
  Lines        16293    16298    +5     
========================================
+ Hits         15128    15133    +5     
  Misses        1165     1165           
Impacted Files Coverage Δ
.../customizations/datapipeline/createdefaultroles.py 85.71% <100.00%> (+0.99%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d1d2e5e...d8a19c0. Read the comment docs.

@joguSD joguSD force-pushed the deprecate-create-default-roles branch from e6489c5 to d8a19c0 Compare January 27, 2022 20:07
@joguSD joguSD force-pushed the deprecate-create-default-roles branch from d8a19c0 to cfb01d1 Compare February 1, 2022 17:40
@stealthycoin stealthycoin merged commit 870e542 into aws:develop Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants