diff --git a/.github/actions/run-terraform-sec/action.yml b/.github/actions/run-terraform-sec/action.yml index 75dae503..65416ca3 100644 --- a/.github/actions/run-terraform-sec/action.yml +++ b/.github/actions/run-terraform-sec/action.yml @@ -1,6 +1,3 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - name: Run tfsec description: -- diff --git a/terraform/cosmosdb/cosmosdb-cassandra-keyspace/main.tf b/terraform/cosmosdb/cosmosdb-cassandra-keyspace/main.tf index e11bd3cb..152eb889 100644 --- a/terraform/cosmosdb/cosmosdb-cassandra-keyspace/main.tf +++ b/terraform/cosmosdb/cosmosdb-cassandra-keyspace/main.tf @@ -4,7 +4,7 @@ resource "azurerm_cosmosdb_cassandra_keyspace" "adl_cosmos_cassandra" { name = var.basename resource_group_name = var.rg_name account_name = var.cosmosdb_account_name - throughput = 400 + throughput = var.throughput } resource "azurerm_private_endpoint" "cassandra_pe" { diff --git a/terraform/cosmosdb/cosmosdb-cassandra-keyspace/variables.tf b/terraform/cosmosdb/cosmosdb-cassandra-keyspace/variables.tf index 7e86f3f5..c4eb2ddf 100644 --- a/terraform/cosmosdb/cosmosdb-cassandra-keyspace/variables.tf +++ b/terraform/cosmosdb/cosmosdb-cassandra-keyspace/variables.tf @@ -43,4 +43,10 @@ variable "cosmosdb_account_name" { variable "cosmosdb_account_id" { type = string description = "The Cosmos DB account id" +} + +variable "throughput" { + type = number + description = "The throughput of Cassandra KeySpace (RU/s)" + default = 400 } \ No newline at end of file diff --git a/terraform/cosmosdb/cosmosdb-gremlin-database/main.tf b/terraform/cosmosdb/cosmosdb-gremlin-database/main.tf index 4b56dc4d..fc9936c2 100644 --- a/terraform/cosmosdb/cosmosdb-gremlin-database/main.tf +++ b/terraform/cosmosdb/cosmosdb-gremlin-database/main.tf @@ -4,7 +4,7 @@ resource "azurerm_cosmosdb_gremlin_database" "adl_cosmos_gremlin" { name = var.basename resource_group_name = var.rg_name account_name = var.cosmosdb_account_name - throughput = 400 + throughput = var.throughput } resource "azurerm_private_endpoint" "gremlin_pe" { diff --git a/terraform/cosmosdb/cosmosdb-gremlin-database/variables.tf b/terraform/cosmosdb/cosmosdb-gremlin-database/variables.tf index 7e86f3f5..c4eb2ddf 100644 --- a/terraform/cosmosdb/cosmosdb-gremlin-database/variables.tf +++ b/terraform/cosmosdb/cosmosdb-gremlin-database/variables.tf @@ -43,4 +43,10 @@ variable "cosmosdb_account_name" { variable "cosmosdb_account_id" { type = string description = "The Cosmos DB account id" +} + +variable "throughput" { + type = number + description = "The throughput of Cassandra KeySpace (RU/s)" + default = 400 } \ No newline at end of file diff --git a/terraform/cosmosdb/cosmosdb-mongo-database/main.tf b/terraform/cosmosdb/cosmosdb-mongo-database/main.tf index cc1b4815..56149bd3 100644 --- a/terraform/cosmosdb/cosmosdb-mongo-database/main.tf +++ b/terraform/cosmosdb/cosmosdb-mongo-database/main.tf @@ -4,7 +4,7 @@ resource "azurerm_cosmosdb_mongo_database" "adl_cosmos_mongo" { name = var.basename resource_group_name = var.rg_name account_name = var.cosmosdb_account_name - throughput = 400 + throughput = var.throughput } resource "azurerm_private_endpoint" "mongo_pe" { diff --git a/terraform/cosmosdb/cosmosdb-mongo-database/variables.tf b/terraform/cosmosdb/cosmosdb-mongo-database/variables.tf index 7e86f3f5..c4eb2ddf 100644 --- a/terraform/cosmosdb/cosmosdb-mongo-database/variables.tf +++ b/terraform/cosmosdb/cosmosdb-mongo-database/variables.tf @@ -43,4 +43,10 @@ variable "cosmosdb_account_name" { variable "cosmosdb_account_id" { type = string description = "The Cosmos DB account id" +} + +variable "throughput" { + type = number + description = "The throughput of Cassandra KeySpace (RU/s)" + default = 400 } \ No newline at end of file diff --git a/terraform/cosmosdb/cosmosdb-sql-database/main.tf b/terraform/cosmosdb/cosmosdb-sql-database/main.tf index f71ebfa5..6e6e64aa 100644 --- a/terraform/cosmosdb/cosmosdb-sql-database/main.tf +++ b/terraform/cosmosdb/cosmosdb-sql-database/main.tf @@ -4,7 +4,7 @@ resource "azurerm_cosmosdb_sql_database" "adl_cosmos_sql" { name = var.basename resource_group_name = var.rg_name account_name = var.cosmosdb_account_name - throughput = 400 + throughput = var.throughput } resource "azurerm_private_endpoint" "sql_pe" { diff --git a/terraform/cosmosdb/cosmosdb-sql-database/variables.tf b/terraform/cosmosdb/cosmosdb-sql-database/variables.tf index 7e86f3f5..c4eb2ddf 100644 --- a/terraform/cosmosdb/cosmosdb-sql-database/variables.tf +++ b/terraform/cosmosdb/cosmosdb-sql-database/variables.tf @@ -43,4 +43,10 @@ variable "cosmosdb_account_name" { variable "cosmosdb_account_id" { type = string description = "The Cosmos DB account id" +} + +variable "throughput" { + type = number + description = "The throughput of Cassandra KeySpace (RU/s)" + default = 400 } \ No newline at end of file diff --git a/terraform/cosmosdb/cosmosdb-table/main.tf b/terraform/cosmosdb/cosmosdb-table/main.tf index 59979328..42e26499 100644 --- a/terraform/cosmosdb/cosmosdb-table/main.tf +++ b/terraform/cosmosdb/cosmosdb-table/main.tf @@ -4,7 +4,7 @@ resource "azurerm_cosmosdb_table" "adl_cosmos_table" { name = var.basename resource_group_name = var.rg_name account_name = var.cosmosdb_account_name - throughput = 400 + throughput = var.throughput } resource "azurerm_private_endpoint" "table_pe" { diff --git a/terraform/cosmosdb/cosmosdb-table/variables.tf b/terraform/cosmosdb/cosmosdb-table/variables.tf index 7e86f3f5..c4eb2ddf 100644 --- a/terraform/cosmosdb/cosmosdb-table/variables.tf +++ b/terraform/cosmosdb/cosmosdb-table/variables.tf @@ -43,4 +43,10 @@ variable "cosmosdb_account_name" { variable "cosmosdb_account_id" { type = string description = "The Cosmos DB account id" +} + +variable "throughput" { + type = number + description = "The throughput of Cassandra KeySpace (RU/s)" + default = 400 } \ No newline at end of file