ContainerSolutions / terraform-examples

Simple and idiomatic examples of various Terraform functions and features.
https://containersolutions.github.io/terraform-examples/
159 stars 51 forks source link

Add Azure Database offerings #65

Closed teszes closed 3 years ago

teszes commented 3 years ago

Adds Azure SQL and NoSQL offernings, namely:

ianmiell commented 3 years ago

LGTM Will merge and resolve conflicts by hand.

teszes commented 3 years ago

Rebased from most recent main branch with added fix for Cassandra

ttarczynski commented 3 years ago

Another error when running terraform apply:

azurerm_postgresql_server.changeme_simple_postgresql_server: Creating...
╷
│ Error: creating PostgreSQL Server "changeme-simple-postgresql-database-name" (Resource Group "changeme-simple-postgresql-database-resource-group"): postgresql.ServersClient#Create: Failure sending request: StatusCode=0 -- Original Error: Code="InvalidUserName" Message="'changeme-admin-u' is not a valid name because it contains invalid characters."
│ 
│   with azurerm_postgresql_server.changeme_simple_postgresql_server,
│   on main.tf line 36, in resource "azurerm_postgresql_server" "changeme_simple_postgresql_server":
│   36: resource "azurerm_postgresql_server" "changeme_simple_postgresql_server" ***
│ 
╵
/home/runner/work/terraform-examples/terraform-examples/azurerm/azurerm_postgresql_server/simple

I'll add a fix for it.