forked from GSA/datagov-iam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
28 lines (25 loc) · 839 Bytes
/
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
28
provider "aws" {
region = "us-east-1"
version = "~> 2.70.0"
}
terraform {
backend "s3" {
bucket = "datagov-terraform-state"
key = "sandbox/iam/terraform.tfstate"
region = "us-east-1"
encrypt = true
dynamodb_table = "datagov-lock-table"
}
required_version = "~> 0.12.0"
}
# https://github.com/18F/aws-admin/blob/035c2dc740fe80cf0e6d5a9cb800cf39bd18d34b/terraform/iam/base.tf#L121-L131
resource "aws_iam_account_password_policy" "tts_iam_password_policy" {
minimum_password_length = 16
require_uppercase_characters = true
require_lowercase_characters = true
require_numbers = true
require_symbols = true
allow_users_to_change_password = true
max_password_age = 89
password_reuse_prevention = 24
}