Commit ffa5a86a authored by malf's avatar malf
Browse files

add iam user

parent 58a00d93
module "iam_account" {
source = "terraform-aws-modules/iam/aws//modules/iam-account"
version = "~> 4"
account_alias = "cccfr"
minimum_password_length = 37
require_numbers = false
}
module "iam_user" {
source = "terraform-aws-modules/iam/aws//modules/iam-user"
version = "~> 4"
name = "malf"
force_destroy = false
password_reset_required = true
}
module "iam_assumable_role" {
source = "terraform-aws-modules/iam/aws//modules/iam-assumable-role"
version = "~> 4"
trusted_role_arns = [module.iam_user.iam_user_arn]
create_role = true
role_name = "admin"
role_requires_mfa = true
custom_role_policy_arns = [
"arn:aws:iam::aws:policy/ReadOnlyAccess"
]
number_of_custom_role_policy_arns = 1
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment