-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
main.tf
27 lines (21 loc) · 1.11 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
data "aws_caller_identity" "this" {}
###################################################
# AWS Account Alias
###################################################
resource "aws_iam_account_alias" "this" {
account_alias = var.name
}
###################################################
# Password Policy for AWS Account and IAM Users
###################################################
resource "aws_iam_account_password_policy" "this" {
minimum_password_length = var.password_policy.minimum_password_length
require_numbers = var.password_policy.require_numbers
require_symbols = var.password_policy.require_symbols
require_lowercase_characters = var.password_policy.require_lowercase_characters
require_uppercase_characters = var.password_policy.require_uppercase_characters
allow_users_to_change_password = var.password_policy.allow_users_to_change_password
hard_expiry = var.password_policy.hard_expiry
max_password_age = var.password_policy.max_password_age
password_reuse_prevention = var.password_policy.password_reuse_prevention
}