-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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: Added iam-read-only-policy module #174
Conversation
Signed-off-by: Andrey Devyatkin <andrey.devyatkin@fivexl.io>
@antonbabenko could you please take a look when you have time or ask someone to do so. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add relevant updates in the main README in the "Usage" and "Examples" sections.
) | ||
} | ||
|
||
module "iam_policy" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add another example of module call with create_policy = false
and update variables defaults accordingly.
@@ -0,0 +1,7 @@ | |||
terraform { | |||
required_version = ">= 0.15.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please set >= 0.12.6
as on all other modules. We will bump to >= 0.13.1
in all modules in another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
modules/iam-read-only-policy/main.tf
Outdated
} | ||
|
||
locals { | ||
console_services = ["resource-groups", "tag", "health"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move these from locals to separate variable defaults to allow customizations (if necessary).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -0,0 +1,7 @@ | |||
terraform { | |||
required_version = ">= 0.15.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same version requirements here as in the example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@Andrey9kin any update on completing this resource ? I can see potential on using it. |
@RafPe will be looking into it tonight! Got few more people asking for it as well |
Co-authored-by: Anton Babenko <anton@antonbabenko.com>
Co-authored-by: Anton Babenko <anton@antonbabenko.com>
Co-authored-by: Anton Babenko <anton@antonbabenko.com>
Co-authored-by: Anton Babenko <anton@antonbabenko.com>
Signed-off-by: Andrey Devyatkin <andrey.devyatkin@fivexl.io>
Signed-off-by: Andrey Devyatkin <andrey.devyatkin@fivexl.io>
@antonbabenko sorry for keeping it hanging but end of the year was kind of crazy. Thanks for the great review comments. When you are back from holidays please take a look. Thanks! |
Signed-off-by: Andrey Devyatkin <andrey.devyatkin@fivexl.io>
} | ||
|
||
data "aws_iam_policy_document" "allowed_services" { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Normally, in other terraform-aws-modules, nothing is being created if create_* = false
is defined. This way is compatible with situations when users want to control the creation of all
or nothing
(e.g. still handy with terragrunt).
I see what you mean in this example. Let's leave it as you have done already. I think it makes sense here.
This PR is included in version 4.8.0 🎉 |
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. |
Description
Added new module to create customizable read only policy
Motivation and Context
Thus this module is an attempt to build a better base for a customizable usable read-only policy.
Breaking Changes
A new thing. Does not break anything
How Has This Been Tested?
examples/*
projects