Skip to content

Commit

Permalink
ms-sql-server: Clean up example a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
bkircher committed May 27, 2021
1 parent de1d6dd commit 3680839
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions ms-sql-server/sqlserver.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,29 @@ terraform {
}
}

# Assume that a bucket named "backup" is created. Following creates an access
# key for this.
resource "gridscale_object_storage_accesskey" "my-backup" {
}

# Assume that a bucket named "backup" is created.

resource "gridscale_sqlserver" "my-sqlserver" {
name = "my MS SQL server"
# The PostgreSQL release of this instance. For convenience, please use gscloud
# (https://github.com/gridscale/gscloud) to get the list of available
# MS SQL server releases.
resource "gridscale_sqlserver" "myserver" {
name = "myserver"
# The Microsoft SQL Server release of this instance. There is only one release
# available now: 2019.
release = "2019"
# Performance class of the MS SQL service. Available performance classes at
# the time of writing are `standard`, `high`, `insane`, `ultra`.

# Performance class of the MS SQL service. Available performance classes are
# `standard`, `high`, `insane`, `ultra`. The performance_class also determines
# how many cores and memory the instance will get.
performance_class = "standard"

# This allows to easily connect your object storage with your new MS SQL
# Server instance. With this you can write your backups to that bucket.
s3_backup {
backup_bucket = "backup"
backup_access_key = gridscale_object_storage_accesskey.my-backup.access_key
backup_secret_key = gridscale_object_storage_accesskey.my-backup.secret_key
backup_server_url = "https://gos3.io"
}
}
}

0 comments on commit 3680839

Please sign in to comment.