UPD: added comments
This commit is contained in:
parent
af5909e39b
commit
e291845a78
@ -1,9 +1,11 @@
|
||||
# variables.tf
|
||||
variable "aws-region" {}
|
||||
variable "customer-name" {}
|
||||
variable "project" {}
|
||||
variable "application" {}
|
||||
variable "environment" {}
|
||||
|
||||
# provider.tf
|
||||
provider "aws" {
|
||||
region = var.aws-region
|
||||
default_tags {
|
||||
@ -28,12 +30,13 @@ terraform {
|
||||
}
|
||||
}
|
||||
|
||||
# main.tf
|
||||
locals {
|
||||
aws-region-short = lookup(module.aws-region-short.region-map, var.aws-region)
|
||||
resource-prefix = "${var.environment}-${local.aws-region-short}-${var.customer-name}-${var.project}"
|
||||
}
|
||||
|
||||
module aws-region-short {
|
||||
module "aws-region-short" {
|
||||
source = "git::https://xpk.headdesk.me/git/xpk/terraform.aws-baseline-infra//modules/util/aws-region-short"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user