-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathuser.tf
26 lines (23 loc) · 948 Bytes
/
user.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
# ------------------------------------------------------------------------------
# Create an IAM user and an associated access key
# ------------------------------------------------------------------------------
module "ci_user" {
source = "github.com/cisagov/ci-iam-user-tf-module"
providers = {
aws = aws
aws.production = aws.images-production-ami
aws.staging = aws.images-staging-ami
}
production_role_tags = {
"GitHub_Secret_Name" = "BUILD_ROLE_TO_ASSUME_PRODUCTION",
"GitHub_Secret_Terraform_Lookup" = "arn",
}
role_description = local.ec2amicreate_role_description
role_max_session_duration = var.ec2amicreate_role_max_session_duration
role_name = local.ec2amicreate_role_name
staging_role_tags = {
"GitHub_Secret_Name" = "BUILD_ROLE_TO_ASSUME_STAGING",
"GitHub_Secret_Terraform_Lookup" = "arn",
}
user_name = var.user_name
}