feat: mssql alpha instance (#2)
* fix: remove unused attribute types and functions from backup models * fix: update API client references to use sqlserverflexalpha package * fix: update package references to use sqlserverflexalpha and modify user data source model * fix: add sqlserverflexalpha user data source to provider * fix: add sqlserverflexalpha user resource and update related functionality * chore: add stackit_sqlserverflexalpha_user resource and instance_id variable * fix: refactor sqlserverflexalpha user resource and enhance schema with status and default_database --------- Co-authored-by: Andre Harms <andre.harms@stackit.cloud> Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
This commit is contained in:
parent
df25ceffd4
commit
5381516661
385 changed files with 1431 additions and 14841 deletions
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (c) STACKIT
|
||||
|
||||
resource "stackitalpha_kms_keyring" "keyring" {
|
||||
project_id = var.project_id
|
||||
display_name = "keyring01"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# Copyright (c) STACKIT
|
||||
|
||||
terraform {
|
||||
required_providers {
|
||||
stackitalpha = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
# Copyright (c) STACKIT
|
||||
|
||||
|
||||
# copy or rename sample.tfrc.example and adjust it
|
||||
TERRAFORM_CONFIG=$(pwd)/sample.tfrc
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
# Copyright (c) STACKIT
|
||||
|
||||
|
||||
# copy or rename sample.tfrc.example and adjust it
|
||||
TERRAFORM_CONFIG=$(pwd)/sample.tfrc
|
||||
|
|
|
|||
8
sample/user.tf
Normal file
8
sample/user.tf
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Copyright (c) STACKIT
|
||||
|
||||
resource "stackit_sqlserverflexalpha_user" "ptlsdbuser" {
|
||||
project_id = stackitalpha_postgresflexalpha_instance.ptlsdbsrv.project_id
|
||||
instance_id = stackitalpha_postgresflexalpha_instance.ptlsdbsrv.id
|
||||
username = var.db_username
|
||||
roles = ["createdb", "login", "createrole"]
|
||||
}
|
||||
|
|
@ -5,3 +5,7 @@ variable "project_id" {
|
|||
variable "sa_email" {
|
||||
default = "<SERVICE ACCOUNT EMAIL>"
|
||||
}
|
||||
|
||||
variable "db_username" {
|
||||
default = "<DB USERNAME>"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue