-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
32 lines (28 loc) · 1.16 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
28
29
30
31
32
module "target_setup" {
source = "./target-setup"
aws_profile = var.target_aws_profile
aws_region = var.target_aws_region
using_managed_policy = var.using_managed_policy
managed_policy_name = var.managed_policy_name
target_role_name = var.target_role_name
target_policy_name = var.target_policy_name
target_policy_path = var.target_policy_path
target_policy_file = var.target_policy_file
access_account_ID = var.access_account_ID
}
module "access_setup" {
source = "./access-setup"
aws_profile = var.access_aws_profile
aws_region = var.access_aws_region
# using_managed_policy = var.using_managed_policy
# managed_policy_name = var.managed_policy_name
user_name = var.user_name
existing_user = var.existing_user
user_path = var.user_path
allow_sts_policy_name = var.allow_sts_policy_name
access_group_name = var.access_group_name
access_group_path = var.access_group_path
target_policy_arn = module.target_setup.target_policy_arn
# target_policy_new_arn = module.target_setup.target_policy_new_arn
# target_policy_managed_arn = module.target_setup.target_policy_managed_arn
}