Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iam_role - Deprecate creating/deleting instance profiles through iam_role #2221

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Aug 20, 2024

SUMMARY

Before the addition of iam_instance_profile the only way to create instance profiles was through iam_role. We now have a dedicated module. With the principle of "do one thing and do it well", let's formally deprecate support for creating/deleting instance profiles from the iam_role module.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

iam_role

ADDITIONAL INFORMATION

There's also some kind of issue around profiles already existing (see #2102 )

@tremble tremble added the backport-8 PR should be backported to the stable-8 branch label Aug 20, 2024
Copy link

github-actions bot commented Aug 20, 2024

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/f3caa6fee6584c6eb3a51661441a18f6

✔️ ansible-galaxy-importer SUCCESS in 4m 47s
✔️ build-ansible-collection SUCCESS in 10m 24s
✔️ ansible-test-splitter SUCCESS in 4m 18s
✔️ integration-amazon.aws-1 SUCCESS in 6m 13s
Skipped 43 jobs

@tremble tremble force-pushed the iam_role/drop_profile_management branch from 219cf7a to 7f05b27 Compare August 21, 2024 07:45
@tremble tremble requested a review from alinabuzachis August 21, 2024 07:45
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/852ec9bda9034c3aac076aba5ef76181

✔️ ansible-galaxy-importer SUCCESS in 5m 19s
✔️ build-ansible-collection SUCCESS in 10m 49s
✔️ ansible-test-splitter SUCCESS in 4m 27s
✔️ integration-amazon.aws-1 SUCCESS in 5m 24s
Skipped 43 jobs

@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Aug 21, 2024
Copy link
Contributor

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/29540d42d6024e209c183e2b11f2cd18

✔️ ansible-galaxy-importer SUCCESS in 4m 32s
✔️ build-ansible-collection SUCCESS in 10m 38s
✔️ ansible-test-splitter SUCCESS in 4m 20s
✔️ integration-amazon.aws-1 SUCCESS in 5m 41s
Skipped 43 jobs

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 7227664 into ansible-collections:main Aug 21, 2024
37 checks passed

This comment was marked as resolved.

@tremble tremble added backport-8 PR should be backported to the stable-8 branch and removed backport-8 PR should be backported to the stable-8 branch labels Aug 26, 2024
Copy link

patchback bot commented Aug 26, 2024

Backport to stable-8: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-8/722766470d72c5599d736792507d8ebdcf2de0b3/pr-2221

Backported as #2232

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Aug 26, 2024
SUMMARY
Before the addition of iam_instance_profile the only way to create instance profiles was through iam_role.  We now have a dedicated module.  With the principle of "do one thing and do it well", let's formally deprecate support for creating/deleting instance profiles from the iam_role module.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
iam_role
ADDITIONAL INFORMATION
There's also some kind of issue around profiles already existing (see #2102 )

Reviewed-by: Alina Buzachis
(cherry picked from commit 7227664)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Aug 26, 2024
…) (#2232)

This is a backport of PR #2221 as merged into main (7227664).
SUMMARY
Before the addition of iam_instance_profile the only way to create instance profiles was through iam_role.  We now have a dedicated module.  With the principle of "do one thing and do it well", let's formally deprecate support for creating/deleting instance profiles from the iam_role module.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
iam_role
ADDITIONAL INFORMATION
There's also some kind of issue around profiles already existing (see #2102 )

Reviewed-by: Mark Chappell
braydencw1 pushed a commit to braydencw1/amazon.aws that referenced this pull request Aug 29, 2024
…ible-collections#2221)

SUMMARY
Before the addition of iam_instance_profile the only way to create instance profiles was through iam_role.  We now have a dedicated module.  With the principle of "do one thing and do it well", let's formally deprecate support for creating/deleting instance profiles from the iam_role module.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
iam_role
ADDITIONAL INFORMATION
There's also some kind of issue around profiles already existing (see ansible-collections#2102 )

Reviewed-by: Alina Buzachis
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Sep 4, 2024
…en not creating a profile (#2282)

fixes: #2102
fixes: #2281
SUMMARY

#2221 deprecation logic accidentally forced create_instance_profile to True
The IAM refactor made iam_role sensitive to pre-existing instance profiles with the same name.

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
iam_role
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis
Reviewed-by: GomathiselviS
patchback bot pushed a commit that referenced this pull request Sep 4, 2024
…en not creating a profile (#2282)

fixes: #2102
fixes: #2281
SUMMARY

#2221 deprecation logic accidentally forced create_instance_profile to True
The IAM refactor made iam_role sensitive to pre-existing instance profiles with the same name.

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
iam_role
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis
Reviewed-by: GomathiselviS
(cherry picked from commit 4867e68)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Sep 4, 2024
…en not creating a profile (#2282) (#2283)

This is a backport of PR #2282 as merged into main (4867e68).
fixes: #2102
fixes: #2281
SUMMARY

#2221 deprecation logic accidentally forced create_instance_profile to True
The IAM refactor made iam_role sensitive to pre-existing instance profiles with the same name.

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
iam_role
ADDITIONAL INFORMATION

Reviewed-by: Mark Chappell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-8 PR should be backported to the stable-8 branch mergeit Merge the PR (SoftwareFactory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants