Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
NOC
Iac
Commits
ffa5a86a
Commit
ffa5a86a
authored
Jan 15, 2022
by
malf
Browse files
add iam user
parent
58a00d93
Changes
1
Hide whitespace changes
Inline
Side-by-side
iam.tf
0 → 100644
View file @
ffa5a86a
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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment