-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update variables.tf for every layer.
- add comment in code to use only for local variables
- Loading branch information
1 parent
4e18dc1
commit 6a2601c
Showing
9 changed files
with
9 additions
and
611 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,3 @@ | ||
# | ||
# management/config/backend.tfvars | ||
# | ||
#================================# | ||
# Terraform AWS Backend Settings # | ||
# Local variables # | ||
#================================# | ||
variable "region" { | ||
type = string | ||
description = "AWS Region" | ||
} | ||
|
||
variable "profile" { | ||
type = string | ||
description = "AWS Profile (required by the backend but also used for other resources)" | ||
} | ||
|
||
variable "bucket" { | ||
type = string | ||
description = "AWS S3 TF State Backend Bucket" | ||
} | ||
|
||
variable "dynamodb_table" { | ||
type = string | ||
description = "AWS DynamoDB TF Lock state table name" | ||
} | ||
|
||
variable "encrypt" { | ||
type = bool | ||
description = "Enable AWS DynamoDB with server side encryption" | ||
} | ||
|
||
# | ||
# config/common.tfvars | ||
# | ||
#=============================# | ||
# Project Variables # | ||
#=============================# | ||
variable "project" { | ||
type = string | ||
description = "Project Name" | ||
} | ||
|
||
variable "project_long" { | ||
type = string | ||
description = "Project Long Name" | ||
} | ||
|
||
variable "environment" { | ||
type = string | ||
description = "Environment Name" | ||
} | ||
|
||
variable "region_secondary" { | ||
type = string | ||
description = "AWS Secondary Region for HA" | ||
} | ||
|
||
variable "management_account_id" { | ||
type = string | ||
description = "Account: Management" | ||
} | ||
|
||
variable "security_account_id" { | ||
type = string | ||
description = "Account: Security & Users Management" | ||
} | ||
|
||
variable "shared_account_id" { | ||
type = string | ||
description = "Account: Shared Resources" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,3 @@ | ||
# | ||
# management/backend.tfvars | ||
# | ||
#================================# | ||
# Terraform AWS Backend Settings # | ||
# Local variables # | ||
#================================# | ||
variable "region" { | ||
type = string | ||
description = "AWS Region" | ||
} | ||
|
||
variable "profile" { | ||
type = string | ||
description = "AWS Profile (required by the backend but also used for other resources)" | ||
} | ||
|
||
variable "bucket" { | ||
type = string | ||
description = "AWS S3 TF State Backend Bucket" | ||
} | ||
|
||
variable "dynamodb_table" { | ||
type = string | ||
description = "AWS DynamoDB TF Lock state table name" | ||
} | ||
|
||
variable "encrypt" { | ||
type = bool | ||
description = "Enable AWS DynamoDB with server side encryption" | ||
} | ||
|
||
# | ||
# config/common.tfvars | ||
# | ||
#=============================# | ||
# Project Variables # | ||
#=============================# | ||
variable "project" { | ||
type = string | ||
description = "Project Name" | ||
} | ||
|
||
variable "project_long" { | ||
type = string | ||
description = "Project Long Name" | ||
} | ||
|
||
variable "environment" { | ||
type = string | ||
description = "Environment Name" | ||
} | ||
|
||
variable "region_secondary" { | ||
type = string | ||
description = "AWS Secondary Region for HA" | ||
} | ||
|
||
variable "management_account_id" { | ||
type = string | ||
description = "Account: Management" | ||
} | ||
|
||
variable "security_account_id" { | ||
type = string | ||
description = "Account: Security & Users Management" | ||
} | ||
|
||
variable "shared_account_id" { | ||
type = string | ||
description = "Account: Shared Resources" | ||
} | ||
|
||
variable "accounts" { | ||
type = map(any) | ||
description = "Accounts descriptions" | ||
} |
70 changes: 1 addition & 69 deletions
70
template/management/primary_region/base-tf-backend/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,3 @@ | ||
# | ||
# management/config/backend.tfvars | ||
# | ||
#================================# | ||
# Terraform AWS Backend Settings # | ||
# Local variables # | ||
#================================# | ||
variable "region" { | ||
type = string | ||
description = "AWS Region" | ||
} | ||
|
||
variable "profile" { | ||
type = string | ||
description = "AWS Profile (required by the backend but also used for other resources)" | ||
} | ||
|
||
variable "bucket" { | ||
type = string | ||
description = "AWS S3 TF State Backend Bucket" | ||
} | ||
|
||
variable "dynamodb_table" { | ||
type = string | ||
description = "AWS DynamoDB TF Lock state table name" | ||
} | ||
|
||
variable "encrypt" { | ||
type = bool | ||
description = "Enable AWS DynamoDB with server side encryption" | ||
} | ||
|
||
# | ||
# config/common.tfvars | ||
# | ||
#=============================# | ||
# Project Variables # | ||
#=============================# | ||
variable "project" { | ||
type = string | ||
description = "Project Name" | ||
} | ||
|
||
variable "project_long" { | ||
type = string | ||
description = "Project Long Name" | ||
} | ||
|
||
variable "environment" { | ||
type = string | ||
description = "Environment Name" | ||
} | ||
|
||
variable "region_secondary" { | ||
type = string | ||
description = "AWS Secondary Region for HA" | ||
} | ||
|
||
variable "management_account_id" { | ||
type = string | ||
description = "Account: Management" | ||
} | ||
|
||
variable "security_account_id" { | ||
type = string | ||
description = "Account: Security & Users Management" | ||
} | ||
|
||
variable "shared_account_id" { | ||
type = string | ||
description = "Account: Shared Resources" | ||
} |
70 changes: 1 addition & 69 deletions
70
template/management/primary_region/security-base/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,3 @@ | ||
# | ||
# management/config/backend.tfvars | ||
# | ||
#================================# | ||
# Terraform AWS Backend Settings # | ||
# Local variables # | ||
#================================# | ||
variable "region" { | ||
type = string | ||
description = "AWS Region" | ||
} | ||
|
||
variable "profile" { | ||
type = string | ||
description = "AWS Profile (required by the backend but also used for other resources)" | ||
} | ||
|
||
variable "bucket" { | ||
type = string | ||
description = "AWS S3 TF State Backend Bucket" | ||
} | ||
|
||
variable "dynamodb_table" { | ||
type = string | ||
description = "AWS DynamoDB TF Lock state table name" | ||
} | ||
|
||
variable "encrypt" { | ||
type = bool | ||
description = "Enable AWS DynamoDB with server side encryption" | ||
} | ||
|
||
# | ||
# config/common.tfvars | ||
# | ||
#=============================# | ||
# Project Variables # | ||
#=============================# | ||
variable "project" { | ||
type = string | ||
description = "Project Name" | ||
} | ||
|
||
variable "project_long" { | ||
type = string | ||
description = "Project Long Name" | ||
} | ||
|
||
variable "environment" { | ||
type = string | ||
description = "Environment Name" | ||
} | ||
|
||
variable "region_secondary" { | ||
type = string | ||
description = "AWS Secondary Region for HA" | ||
} | ||
|
||
variable "management_account_id" { | ||
type = string | ||
description = "Account: Management" | ||
} | ||
|
||
variable "security_account_id" { | ||
type = string | ||
description = "Account: Security & Users Management" | ||
} | ||
|
||
variable "shared_account_id" { | ||
type = string | ||
description = "Account: Shared Resources" | ||
} |
70 changes: 1 addition & 69 deletions
70
template/security/primary_region/base-tf-backend/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,3 @@ | ||
# | ||
# security/config/backend.tfvars | ||
# | ||
#================================# | ||
# Terraform AWS Backend Settings # | ||
# Local variables # | ||
#================================# | ||
variable "region" { | ||
type = string | ||
description = "AWS Region" | ||
} | ||
|
||
variable "profile" { | ||
type = string | ||
description = "AWS Profile (required by the backend but also used for other resources)" | ||
} | ||
|
||
variable "bucket" { | ||
type = string | ||
description = "AWS S3 TF State Backend Bucket" | ||
} | ||
|
||
variable "dynamodb_table" { | ||
type = string | ||
description = "AWS DynamoDB TF Lock state table name" | ||
} | ||
|
||
variable "encrypt" { | ||
type = bool | ||
description = "Enable AWS DynamoDB with server side encryption" | ||
} | ||
|
||
# | ||
# config/common.tfvars | ||
# | ||
#=============================# | ||
# Project Variables # | ||
#=============================# | ||
variable "project" { | ||
type = string | ||
description = "Project Name" | ||
} | ||
|
||
variable "project_long" { | ||
type = string | ||
description = "Project Long Name" | ||
} | ||
|
||
variable "environment" { | ||
type = string | ||
description = "Environment Name" | ||
} | ||
|
||
variable "region_secondary" { | ||
type = string | ||
description = "AWS Secondary Region for HA" | ||
} | ||
|
||
variable "management_account_id" { | ||
type = string | ||
description = "Account: Management" | ||
} | ||
|
||
variable "security_account_id" { | ||
type = string | ||
description = "Account: Security & Users Management" | ||
} | ||
|
||
variable "shared_account_id" { | ||
type = string | ||
description = "Account: Shared Resources" | ||
} |
Oops, something went wrong.