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

feat: Make PGP Key Optional in All Cases #205

Merged
merged 5 commits into from
Mar 26, 2022
Merged

feat: Make PGP Key Optional in All Cases #205

merged 5 commits into from
Mar 26, 2022

Conversation

p0fi
Copy link
Contributor

@p0fi p0fi commented Mar 10, 2022

Description

This will make the pgp_key argument optional in all configurations and add the unencrypted user password to the list of outputs. This will also raise the minimum required aws provider version to 4.1.0

Motivation and Context

When trying to create an iam user without a pgp_key but with an iam_user_login_profile the creation would fail.
Since version 4.1.0 of the aws provider the pgp_key argument of the resource aws_iam_user_login_profile is optional. Thus the constraint that a pgp_key is required when using create_iam_user_login_profile = true is not needed anymore.

👉 Terraform docs for aws_iam_user_login_profile (4.1.0)

Breaking Changes

No

How Has This Been Tested?

  • I have tested and validated these changes using one or more of the provided examples/* projects

The pgp_key argument in the aws_iam_user_login_profile resource is optional with a sufficently new provider.
@p0fi p0fi changed the title Make PGP Key Optional in All Cases feat: Make PGP Key Optional in All Cases Mar 10, 2022
The pgp_key argument is optional since 4.1.0
@bryantbiggs
Copy link
Member

Thanks for the PR @p0fi - can you update the docs by running pre-commit run -a please

@p0fi
Copy link
Contributor Author

p0fi commented Mar 25, 2022

Sorry for the dumb question, but how to do this? I checked brew and found a package called pre-commit and installed it. But running pre-commit run -a gives a lot of errors of seemingly missing tools. Is there somewhere a readme on how to update the docs? what tools should I have installed and so on.

@bryantbiggs
Copy link
Member

ah yes, we should probably add that. Here is a link for now https://github.com/antonbabenko/pre-commit-terraform#how-to-install

@bryantbiggs
Copy link
Member

Opened a PR to add this info FYI - terraform-aws-modules/.github#22

@p0fi
Copy link
Contributor Author

p0fi commented Mar 25, 2022

Thanks for the link, the docker image worked well 🚀

Copy link
Member

@bryantbiggs bryantbiggs left a comment

Choose a reason for hiding this comment

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

thanks for the PR @p0fi - good to go @antonbabenko 👍🏽

@antonbabenko antonbabenko merged commit 4242512 into terraform-aws-modules:master Mar 26, 2022
antonbabenko pushed a commit that referenced this pull request Mar 26, 2022
## [4.17.0](v4.16.0...v4.17.0) (2022-03-26)

### Features

* Make PGP Key Optional in All Cases ([#205](#205)) ([4242512](4242512))
@antonbabenko
Copy link
Member

This PR is included in version 4.17.0 🎉

@github-actions
Copy link

github-actions bot commented Nov 8, 2022

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 8, 2022
@p0fi p0fi deleted the optional-pgp-key branch December 5, 2022 08:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants