From 768bfc1b4a47c72d21a6679728eb0292f555ebb4 Mon Sep 17 00:00:00 2001 From: tomarv2 Date: Mon, 31 Jan 2022 11:11:33 -0800 Subject: [PATCH 1/2] fixing output --- examples/sample/main.tf | 3 +++ examples/sample/outputs.tf | 6 +++--- outputs.tf | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/examples/sample/main.tf b/examples/sample/main.tf index e27aa6a..8117ba4 100644 --- a/examples/sample/main.tf +++ b/examples/sample/main.tf @@ -1,3 +1,6 @@ +provider "aws" { + region = "us-west-2" +} module "databricks_workspace" { source = "../../" diff --git a/examples/sample/outputs.tf b/examples/sample/outputs.tf index f4b29da..7899347 100644 --- a/examples/sample/outputs.tf +++ b/examples/sample/outputs.tf @@ -8,9 +8,9 @@ output "vpc_route_table_ids" { value = module.databricks_workspace.vpc_route_table_ids } -output "vpc_security_group_ids" { - description = "list of VPC security group IDs" - value = module.databricks_workspace.vpc_security_group_ids +output "vpc_security_group_id" { + description = "VPC security group ID" + value = module.databricks_workspace.vpc_security_group_id } output "vpc_subnet_ids" { description = "list of subnet ids within VPC" diff --git a/outputs.tf b/outputs.tf index 1c62bb6..55a8c6d 100644 --- a/outputs.tf +++ b/outputs.tf @@ -8,8 +8,8 @@ output "vpc_route_table_ids" { value = concat(module.vpc.private_route_table_ids, module.vpc.public_route_table_ids) } -output "vpc_security_group_ids" { - description = "list of VPC security group IDs" +output "vpc_security_group_id" { + description = "list of VPC security group ID" value = [module.vpc.default_security_group_id] } output "vpc_subnet_ids" { From fa73330db22eab4eb0025d50bf5b0434371c1558 Mon Sep 17 00:00:00 2001 From: tomarv2 Date: Thu, 3 Feb 2022 18:18:03 -0800 Subject: [PATCH 2/2] initial commit --- .pre-commit-config.yaml | 2 +- examples/sample/main.tf | 1 + examples/test/variables.tf | 9 --------- 3 files changed, 2 insertions(+), 10 deletions(-) delete mode 100755 examples/test/variables.tf diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fbd2a38..5740f2c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: - '--args=--only=terraform_workspace_remote' - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 + rev: v3.4.0 hooks: - id: trailing-whitespace - id: check-merge-conflict diff --git a/examples/sample/main.tf b/examples/sample/main.tf index 8117ba4..bd30bef 100644 --- a/examples/sample/main.tf +++ b/examples/sample/main.tf @@ -1,6 +1,7 @@ provider "aws" { region = "us-west-2" } + module "databricks_workspace" { source = "../../" diff --git a/examples/test/variables.tf b/examples/test/variables.tf deleted file mode 100755 index f3511b5..0000000 --- a/examples/test/variables.tf +++ /dev/null @@ -1,9 +0,0 @@ -variable "teamid" { - description = "(Required) Name of the team/group e.g. devops, dataengineering. Should not be changed after running 'tf apply'" - type = string -} - -variable "prjid" { - description = "(Required) Name of the project/stack e.g: mystack, nifieks, demoaci. Should not be changed after running 'tf apply'" - type = string -}