Skip to content

Commit 7b87a24

Browse files
committed
refactor: defines locals in the main file
1 parent e6df5e6 commit 7b87a24

File tree

20 files changed

+47
-40
lines changed

20 files changed

+47
-40
lines changed

examples/assign-users-and-groups-to-account/locals.tf

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/assign-users-and-groups-to-account/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
locals {
2+
aws_region = "us-east-1"
3+
}
4+
15
module "account_perimissions_assignment" {
26
source = "../../modules/account_users_and_groups_assignments"
37

examples/create-member-account/locals.tf

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/create-member-account/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
locals {
2+
aws_region = "ap-south-1"
3+
account_name = ""
4+
account_email = ""
5+
}
6+
17
module "billing_access_member_account" {
28
source = "../../modules/account/"
39

examples/create-organization/locals.tf

Lines changed: 0 additions & 6 deletions
This file was deleted.

examples/create-organization/main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
locals {
2+
aws_region = "ap-south-1"
3+
aws_organizations_feature_set = "ALL"
4+
aws_organizations_enabled_policy_types = []
5+
aws_organizations_aws_service_access_principals = []
6+
}
7+
18
module "service_integration_enabled_org" {
29
source = "../../"
310

examples/create-organizational-unit/locals.tf

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/create-organizational-unit/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
locals {
2+
aws_region = "ap-south-1"
3+
organizational_unit_name = "Production"
4+
parent_ou_id = "ou-abcd-abcdefgh"
5+
}
6+
17
module "production_ou" {
28
source = "../../modules/organizational_unit/"
39

examples/create-permission-set/locals.tf

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/create-permission-set/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
locals {
2+
aws_region = "us-east-1"
3+
}
4+
15
module "permission_sets" {
26
source = "../../modules/permission_sets"
37

0 commit comments

Comments
 (0)