Skip to content

Commit be23936

Browse files
committed
minor clean
1 parent 0f1f0ef commit be23936

File tree

11 files changed

+35
-8
lines changed

11 files changed

+35
-8
lines changed

.github/actions/run-terraform-sec/action.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Copyright (c) Microsoft Corporation. All rights reserved.
2-
# Licensed under the MIT License.
3-
41
name: Run tfsec
52
description: --
63

terraform/cosmosdb/cosmosdb-cassandra-keyspace/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resource "azurerm_cosmosdb_cassandra_keyspace" "adl_cosmos_cassandra" {
44
name = var.basename
55
resource_group_name = var.rg_name
66
account_name = var.cosmosdb_account_name
7-
throughput = 400
7+
throughput = var.throughput
88
}
99

1010
resource "azurerm_private_endpoint" "cassandra_pe" {

terraform/cosmosdb/cosmosdb-cassandra-keyspace/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,10 @@ variable "cosmosdb_account_name" {
4343
variable "cosmosdb_account_id" {
4444
type = string
4545
description = "The Cosmos DB account id"
46+
}
47+
48+
variable "throughput" {
49+
type = number
50+
description = "The throughput of Cassandra KeySpace (RU/s)"
51+
default = 400
4652
}

terraform/cosmosdb/cosmosdb-gremlin-database/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resource "azurerm_cosmosdb_gremlin_database" "adl_cosmos_gremlin" {
44
name = var.basename
55
resource_group_name = var.rg_name
66
account_name = var.cosmosdb_account_name
7-
throughput = 400
7+
throughput = var.throughput
88
}
99

1010
resource "azurerm_private_endpoint" "gremlin_pe" {

terraform/cosmosdb/cosmosdb-gremlin-database/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,10 @@ variable "cosmosdb_account_name" {
4343
variable "cosmosdb_account_id" {
4444
type = string
4545
description = "The Cosmos DB account id"
46+
}
47+
48+
variable "throughput" {
49+
type = number
50+
description = "The throughput of Cassandra KeySpace (RU/s)"
51+
default = 400
4652
}

terraform/cosmosdb/cosmosdb-mongo-database/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resource "azurerm_cosmosdb_mongo_database" "adl_cosmos_mongo" {
44
name = var.basename
55
resource_group_name = var.rg_name
66
account_name = var.cosmosdb_account_name
7-
throughput = 400
7+
throughput = var.throughput
88
}
99

1010
resource "azurerm_private_endpoint" "mongo_pe" {

terraform/cosmosdb/cosmosdb-mongo-database/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,10 @@ variable "cosmosdb_account_name" {
4343
variable "cosmosdb_account_id" {
4444
type = string
4545
description = "The Cosmos DB account id"
46+
}
47+
48+
variable "throughput" {
49+
type = number
50+
description = "The throughput of Cassandra KeySpace (RU/s)"
51+
default = 400
4652
}

terraform/cosmosdb/cosmosdb-sql-database/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resource "azurerm_cosmosdb_sql_database" "adl_cosmos_sql" {
44
name = var.basename
55
resource_group_name = var.rg_name
66
account_name = var.cosmosdb_account_name
7-
throughput = 400
7+
throughput = var.throughput
88
}
99

1010
resource "azurerm_private_endpoint" "sql_pe" {

terraform/cosmosdb/cosmosdb-sql-database/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,10 @@ variable "cosmosdb_account_name" {
4343
variable "cosmosdb_account_id" {
4444
type = string
4545
description = "The Cosmos DB account id"
46+
}
47+
48+
variable "throughput" {
49+
type = number
50+
description = "The throughput of Cassandra KeySpace (RU/s)"
51+
default = 400
4652
}

terraform/cosmosdb/cosmosdb-table/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resource "azurerm_cosmosdb_table" "adl_cosmos_table" {
44
name = var.basename
55
resource_group_name = var.rg_name
66
account_name = var.cosmosdb_account_name
7-
throughput = 400
7+
throughput = var.throughput
88
}
99

1010
resource "azurerm_private_endpoint" "table_pe" {

0 commit comments

Comments
 (0)