24 lines
645 B
Markdown
24 lines
645 B
Markdown
|
# iam-user module
|
||
|
Module for creating IAM user. Credentials, if any, will be stored in secretsmanager
|
||
|
|
||
|
## Example
|
||
|
```terraform
|
||
|
module iam-user {
|
||
|
source = "../../modules/security_identity_compliance/iam-user"
|
||
|
|
||
|
default-tags = local.default-tags
|
||
|
iam-user-name = var.iam-user-name
|
||
|
iam-user-policy = ""
|
||
|
iam-user-policy-name = "SelfServicePermissions"
|
||
|
create-access-key = false
|
||
|
create-password = false
|
||
|
managed-policy-arns = ["arn:aws:iam::aws:policy/job-function/ViewOnlyAccess"]
|
||
|
create-group = true
|
||
|
add-to-groups = []
|
||
|
iam-group-name = var.iam-group-name
|
||
|
}
|
||
|
|
||
|
output iam-user-arn {
|
||
|
value = module.iam-user.iam-user-arn
|
||
|
}
|
||
|
```
|