generated from BurendoUK/burendo-repo-template-terraform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscp.tf
28 lines (23 loc) · 979 Bytes
/
scp.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
locals {
organization_policy_full_access_id = "p-FullAWSAccess"
}
resource "aws_organizations_policy_attachment" "infrastructure" {
policy_id = local.organization_policy_full_access_id
target_id = aws_organizations_organizational_unit.infrastructure.id
}
resource "aws_organizations_policy_attachment" "security" {
policy_id = local.organization_policy_full_access_id
target_id = aws_organizations_organizational_unit.security.id
}
resource "aws_organizations_policy_attachment" "management" {
policy_id = local.organization_policy_full_access_id
target_id = aws_organizations_account.burendo.id
}
resource "aws_organizations_policy_attachment" "sandboxes" {
policy_id = local.organization_policy_full_access_id
target_id = aws_organizations_organizational_unit.sandboxes.id
}
resource "aws_organizations_policy_attachment" "clients" {
policy_id = local.organization_policy_full_access_id
target_id = aws_organizations_organizational_unit.clients.id
}