From c1e65ec1cd20c66088a550f2ce37202c386b114e Mon Sep 17 00:00:00 2001 From: Filicipa Date: Wed, 18 Sep 2024 15:55:41 +0300 Subject: [PATCH] Fix syntax --- .github/workflows/documentation.yaml | 6 +++--- main_elasticache.tf | 4 ++-- main_rds.tf | 4 ++-- terraform.tfvars.example | 4 ++-- variables_elasticache.tf | 4 ++-- variables_rds.tf | 6 +++--- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index 1ad8021..96bf333 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -1,9 +1,9 @@ name: Generate terraform READme on: workflow_dispatch: - # push: - # branches: - # - main + push: + tags: + - v*.*.* jobs: docs: permissions: write-all diff --git a/main_elasticache.tf b/main_elasticache.tf index d8e1406..46fc47e 100644 --- a/main_elasticache.tf +++ b/main_elasticache.tf @@ -3,8 +3,8 @@ module "elasticache" { cluster_name = var.cluster_name env = var.env project_name = var.project_name - engine = var.engine - engine_version = var.engine_version + engine = var.redis_engine + engine_version = var.redis_engine_version node_type = var.node_type num_cache_nodes = var.num_cache_nodes parameter_group_name = var.parameter_group_name diff --git a/main_rds.tf b/main_rds.tf index dd11c31..b491329 100644 --- a/main_rds.tf +++ b/main_rds.tf @@ -9,8 +9,8 @@ module "rds_postgres" { allow_major_version_upgrade = var.allow_major_version_upgrade backup_retention_period = var.backup_retention_period deletion_protection = var.deletion_protection - engine = var.engine - engine_version = var.engine_version + engine = var.rds_engine + engine_version = var.rds_engine_version instance_class = var.instance_class publicly_accessible = var.publicly_accessible skip_final_snapshot = var.skip_final_snapshot diff --git a/terraform.tfvars.example b/terraform.tfvars.example index f4177d6..5a73cbd 100644 --- a/terraform.tfvars.example +++ b/terraform.tfvars.example @@ -96,8 +96,8 @@ iam_role_name = "name" #### Elasticache cluster_name = "test-cluster" -engine = "redis" -engine_version = "7.1" +redis_engine = "redis" +redis_engine_version = "7.1" node_type = "cache.t4g.micro" num_cache_nodes = 1 parameter_group_name = "" diff --git a/variables_elasticache.tf b/variables_elasticache.tf index a6aa2e3..6c3a72e 100644 --- a/variables_elasticache.tf +++ b/variables_elasticache.tf @@ -3,13 +3,13 @@ variable "cluster_name" { type = string } -variable "engine" { +variable "redis_engine" { description = "Cluster engine" type = string default = "redis" } -variable "engine_version" { +variable "redis_engine_version" { description = "Engine version" type = string } diff --git a/variables_rds.tf b/variables_rds.tf index 4d20daf..b86670a 100644 --- a/variables_rds.tf +++ b/variables_rds.tf @@ -34,18 +34,18 @@ variable "allocated_storage" { } variable "max_allocated_storage" { - description = "Autoscale stogage amount" + description = "Autoscale storage amount" type = string default = "0" } -variable "engine" { +variable "rds_engine" { description = "Engine type" type = string default = "postgres" } -variable "engine_version" { +variable "rds_engine_version" { description = "Engine_version" type = string default = "14.8"