-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathmain.tf
More file actions
23 lines (16 loc) · 605 Bytes
/
main.tf
File metadata and controls
23 lines (16 loc) · 605 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module "yaml_config" {
source = "cloudposse/config/yaml"
version = "1.0.2"
list_config_local_base_path = path.module
list_config_paths = var.list_config_paths
parameters = var.parameters
context = module.this.context
}
data "aws_caller_identity" "this" {}
module "service_control_policies" {
source = "../../"
service_control_policy_statements = module.yaml_config.list_configs
service_control_policy_description = var.service_control_policy_description
target_id = data.aws_caller_identity.this.account_id
context = module.this.context
}