aboutsummaryrefslogtreecommitdiffstats
path: root/terraform
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2024-08-19 19:19:44 +0100
committerAlex Schofield <git@ajschof.me>2024-08-19 19:19:44 +0100
commit35bf4e8668309cb28175ef0224a6bce453abb47f (patch)
tree39c7e44813a2e6d49dd9e446b01d9021269ccbaf /terraform
parent56b2c376a925132f3bf2c7e6cad4911400955129 (diff)
downloadde-project-bentley-35bf4e8668309cb28175ef0224a6bce453abb47f.tar.gz
de-project-bentley-35bf4e8668309cb28175ef0224a6bce453abb47f.zip
chore(tf): replace static tag values in main.tf with variables
Diffstat (limited to 'terraform')
-rw-r--r--terraform/main.tf8
-rw-r--r--terraform/vars.tf20
2 files changed, 24 insertions, 4 deletions
diff --git a/terraform/main.tf b/terraform/main.tf
index 206fc74..5ccbec2 100644
--- a/terraform/main.tf
+++ b/terraform/main.tf
@@ -25,11 +25,11 @@ provider "aws" {
region = "eu-west-2"
default_tags {
tags = {
- ProjectName = "Terrific-Totes"
- Team = "Team-Bentley"
- Environment = "Dev"
- GitHubRepo = "de-project-bentley"
+ ProjectName = var.project_name
+ Environment = var.environment
ManagedBy = "Terraform"
+ GitHubRepo = var.github_repo
+ Team = var.team_name
}
}
}
diff --git a/terraform/vars.tf b/terraform/vars.tf
index 3c88731..1adbcf7 100644
--- a/terraform/vars.tf
+++ b/terraform/vars.tf
@@ -33,6 +33,26 @@ variable "project_name" {
default = "tt"
}
+variable "aws_region" {
+ type = string
+ default = "eu-west-2"
+}
+
+variable "environment" {
+ type = string
+ default = "dev"
+}
+
+variable "github_repo" {
+ type = string
+ default = "de-project-bentley"
+}
+
+variable "team_name" {
+ type = string
+ default = "Team-Bentley"
+}
+
data "aws_caller_identity" "current" {}
data "aws_region" "current" {}
git.ajschof.me — hosted by ajschofield — powered by cgit