feat: updated root module skeleton template
This commit is contained in:
+1
-9
@@ -1,9 +1 @@
|
|||||||
# Every module should be documented
|
# TODO generate with terraform-docs
|
||||||
|
|
||||||
## Description
|
|
||||||
|
|
||||||
## Input variables
|
|
||||||
|
|
||||||
## Output variables
|
|
||||||
|
|
||||||
## Example
|
|
||||||
+4
-1
@@ -1 +1,4 @@
|
|||||||
# main.tf
|
/**
|
||||||
|
* # Module Name
|
||||||
|
*
|
||||||
|
*/
|
||||||
+2
-2
@@ -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,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
@@ -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
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user