1
0

feat: updated root module skeleton template

This commit is contained in:
xpk
2026-02-25 15:47:56 +08:00
parent fc32e26962
commit df22fcf46b
5 changed files with 28 additions and 18 deletions
+1 -9
View File
@@ -1,9 +1 @@
# Every module should be documented # TODO generate with terraform-docs
## Description
## Input variables
## Output variables
## Example
+4 -1
View File
@@ -1 +1,4 @@
# main.tf /**
* # Module Name
*
*/
+2 -2
View File
@@ -13,11 +13,11 @@ provider "aws" {
terraform { terraform {
required_version = ">= 1.3" required_version = ">= 1.11"
required_providers { required_providers {
aws = { aws = {
source = "hashicorp/aws" source = "hashicorp/aws"
version = ">= 5.0" version = ">= 6.0"
} }
} }
} }
+1 -1
View File
@@ -1,5 +1,5 @@
aws-region = "ap-east-1" aws-region = "ap-east-1"
customer-name = "CX" customer-name = "CX"
environment = "prod" environment = "Lab"
project = "SupportTools" project = "SupportTools"
application = "Undefined" application = "Undefined"
+20 -5
View File
@@ -1,5 +1,20 @@
variable "aws-region" {} variable "aws-region" {
variable "customer-name" {} description = "AWS Region"
variable "environment" {} type = string
variable "project" {} }
variable "application" {} variable "customer-name" {
description = "Resource owner"
type = string
}
variable "environment" {
description = "Environment i.e. Prod/Qa/Dev"
type = string
}
variable "project" {
description = "Name of project"
type = string
}
variable "application" {
description = "Name of application"
type = string
}