Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dbaas): session support #403

Merged
merged 2 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ See updating [Changelog example here](https://keepachangelog.com/en/1.0.0/)
### Added
- gateway: add read-only `addresses` field
- kubernetes: `control_plane_ip_filter` field to `upcloud_kubernetes_cluster` resource
- dbaas: `upcloud_managed_database_mysql_sessions`, `upcloud_managed_database_postgresql_sessions` and `upcloud_managed_database_redis_sessions` data sources

### Changed
- kubernetes: remove node group maximum value validation. The maximum number of nodes (in the cluster) is determined by the cluster plan and the validation is done on the API side.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Use data source to gather a list of the active sessions for a Managed MySQL Database

# Create a Managed MySQL resource
resource "upcloud_managed_database_mysql" "example" {
name = "mysql-example1"
plan = "1x1xCPU-2GB-25GB"
zone = "fi-hel1"
}

# Read the active sessions of the newly created service
data "upcloud_managed_database_mysql_sessions" "example" {
service = upcloud_managed_database_mysql.example.id
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Use data source to gather a list of the active sessions for a Managed PostgreSQL Database

# Create a Managed PostgreSQL resource
resource "upcloud_managed_database_postgresql" "example" {
name = "mysql-example1"
plan = "1x1xCPU-2GB-25GB"
zone = "fi-hel1"
}

# Read the active sessions of the newly created service
data "upcloud_managed_database_postgresql_sessions" "example" {
service = upcloud_managed_database_postgresql.example.id
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Use data source to gather a list of the active sessions for a Managed Redis Database

# Create a Managed Redis resource
resource "upcloud_managed_database_redis" "example" {
name = "example"
plan = "1x1xCPU-2GB"
zone = "fi-hel2"
}

# Read the active sessions of the newly created service
data "upcloud_managed_database_redis_sessions" "example" {
service = upcloud_managed_database_redis.example.id
}
Loading