Skip to content

Commit

Permalink
- update variables.tf for every layer.
Browse files Browse the repository at this point in the history
- add comment in code to use only for local variables
  • Loading branch information
rodriguez-matias committed Mar 25, 2024
1 parent 4e18dc1 commit 6a2601c
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 611 deletions.
70 changes: 1 addition & 69 deletions template/management/global/organizations/variables.tf
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"
}
75 changes: 1 addition & 74 deletions template/management/global/sso/variables.tf
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 template/management/primary_region/base-tf-backend/variables.tf
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 template/management/primary_region/security-base/variables.tf
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 template/security/primary_region/base-tf-backend/variables.tf
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"
}
Loading

0 comments on commit 6a2601c

Please sign in to comment.