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
## Description
## Input variables
## Output variables
## Example
# TODO generate with terraform-docs
+4 -1
View File
@@ -1 +1,4 @@
# main.tf
/**
* # Module Name
*
*/
+2 -2
View File
@@ -13,11 +13,11 @@ provider "aws" {
terraform {
required_version = ">= 1.3"
required_version = ">= 1.11"
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5.0"
version = ">= 6.0"
}
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
aws-region = "ap-east-1"
customer-name = "CX"
environment = "prod"
environment = "Lab"
project = "SupportTools"
application = "Undefined"
+20 -5
View File
@@ -1,5 +1,20 @@
variable "aws-region" {}
variable "customer-name" {}
variable "environment" {}
variable "project" {}
variable "application" {}
variable "aws-region" {
description = "AWS Region"
type = string
}
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
}