-
Notifications
You must be signed in to change notification settings - Fork 11
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: new AWS IAM module #82
base: rc
Are you sure you want to change the base?
Conversation
account_id = data.aws_caller_identity.this.account_id | ||
delicense_param = try(startswith(var.delicense_ssm_param_name, "/") ? var.delicense_ssm_param_name : "/${var.delicense_ssm_param_name}", null) | ||
|
||
lambda_execute_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.
lambda_execute_policy = { | |
lambda_execute_policies = { |
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.
hmm, from AWS perspective - it is a one policy with many statements
} | ||
} | ||
|
||
lambda_delicense_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.
lambda_delicense_policy = { | |
lambda_delicense_policies = { |
default = false | ||
} | ||
|
||
variable "create_bootrap_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.
As with instance profile - proposal to either merge this into a single var or rely on bucket name.
Co-authored-by: michalbil <[email protected]>
Co-authored-by: michalbil <[email protected]>
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.
Thanks @michalbil for suggestion - "plurals" and "create" we can rediscuss offline
modules/iam/variables.tf
Outdated
variable "create_instance_profile" { | ||
description = "Create an instance profile." | ||
type = bool | ||
default = false | ||
} | ||
|
||
variable "profile_instance_name" { | ||
description = "A profile instance name." | ||
type = string | ||
default = null | ||
} |
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.
I think - using create variable - gives more flexibility. The module can use data source for existing instance_profile_name = 'name' - The name providing only is less initiative and also different modules are using this approach.
Co-authored-by: michalbil <[email protected]>
Description
The PR introduces new module for AWS repo - It supports pre-defined collection of used IAM policies and custom made policies as well.
Motivation and Context
#53 issue presents required changes for major refactor of existing code.
How Has This Been Tested?
The IAM modules should be tested against all examples.
Types of changes
Checklist