-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial module passing all tests
Signed-off-by: Roman Schwarz <rs@cloudeteer.de>
- Loading branch information
Showing
19 changed files
with
485 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
tflint { | ||
required_version = "~> 0.50" | ||
} | ||
|
||
plugin "terraform" { | ||
enabled = true | ||
|
||
source = "github.com/terraform-linters/tflint-ruleset-terraform" | ||
version = "0.9.1" | ||
|
||
preset = "all" | ||
} | ||
|
||
plugin "azurerm" { | ||
enabled = true | ||
version = "0.27.0" | ||
source = "github.com/terraform-linters/tflint-ruleset-azurerm" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,47 @@ | ||
resource "azurerm_resource_group" "example" { | ||
name = "rg-example-dev-euw-01" | ||
location = "westeurope" | ||
} | ||
|
||
resource "azurerm_virtual_network" "example" { | ||
name = "vnet-example-dev-euw-01" | ||
resource_group_name = azurerm_resource_group.example.name | ||
location = azurerm_resource_group.example.location | ||
|
||
address_space = ["10.0.0.0/8"] | ||
} | ||
|
||
resource "azurerm_subnet" "example" { | ||
name = "snet-example" | ||
resource_group_name = azurerm_resource_group.example.name | ||
virtual_network_name = azurerm_virtual_network.example.name | ||
|
||
address_prefixes = ["10.1.0.0/16"] | ||
} | ||
|
||
|
||
module "example" { | ||
# Change "module" and "provider" accordingly to match you new module | ||
source = "cloudeteer/module/provider" | ||
source = "cloudeteer/ai/azurerm" | ||
|
||
name = "oai-example-dev-euw-01" | ||
resource_group_name = azurerm_resource_group.example.name | ||
location = azurerm_resource_group.example.location | ||
|
||
subnet_id = azurerm_subnet.example.id | ||
|
||
kind = "OpenAI" | ||
sku_name = "S0" | ||
|
||
example_variable = "example_value" | ||
models = [ | ||
{ | ||
rai_policy_name = "Microsoft.Default" | ||
format = "OpenAI" | ||
name = "gpt-4o-mini" | ||
version = "2024-07-18" | ||
sku = { | ||
name = "GlobalStandard" | ||
capacity = 100 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
# This override file is mandatory for Terraform tests. | ||
# Not needed to use this example. | ||
terraform { | ||
# add all providers used in the module to run tests | ||
#required_providers { | ||
# random = { source = "hashicorp/random" } | ||
#} | ||
required_providers { | ||
azurerm = { source = "hashicorp/azurerm" } | ||
} | ||
} | ||
|
||
module "example" { source = "../.." } |
Oops, something went wrong.