1
0

feat: new iam-user module and secretsmanager-2025 module

This commit is contained in:
xpk
2026-04-25 21:42:02 +08:00
parent 5fd8aa807f
commit 2ef2ad1571
12 changed files with 473 additions and 140 deletions
@@ -1,20 +1,44 @@
variable "iam-user-name" {}
variable "iam-user-policy" {
type = string
default = ""
variable "create_group_name" {
type = string
description = "Name of new group to be created and add user to"
default = null
}
variable "iam-user-policy-name" {
type = string
default = ""
variable "user_name" {
type = string
description = "Name of IAM user"
}
variable "create-access-key" {
type = bool
variable "existing_group_name" {
type = string
description = "Name of existing group to add user to"
default = null
}
variable "create-password" {
type = bool
variable "enable_console_access" {
type = bool
description = "Enable console access"
}
variable "managed-policy-arns" {}
variable "add-to-groups" {
type = list(string)
default = []
}
variable "custom_iam_policy_json" {
type = string
description = "Json encoded aws_iam_policy_document, only applicable when create_group_name is used."
}
variable "attach_iam_policies" {
type = list(string)
description = "Aws-Managed iam policies to be attached"
default = []
}
variable "create_access_key" {
type = bool
description = "Create access key for user"
}
variable "secretsmanager_kms_arn" {
type = string
description = "KMS key arn of secretsmanager"
}
data "aws_caller_identity" "this" {}