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

Fix database_backup import #2290

Open
remyleone opened this issue Dec 8, 2023 · 0 comments
Open

Fix database_backup import #2290

remyleone opened this issue Dec 8, 2023 · 0 comments
Assignees
Labels
bug priority:highest Bugs filled by customers, security issues rdb Managed MySQL and PostgreSQL issues, bugs and feature requests

Comments

@remyleone
Copy link
Member

terraform {
  required_providers {
    scaleway = {
      source = "scaleway/scaleway"
    }
  }
  required_version = ">= 0.13"
}

# scaleway_rdb_acl
# scaleway_rdb_database
# scaleway_rdb_database_backup
# scaleway_rdb_privilege
# scaleway_rdb_read_replica
# scaleway_rdb_user

import {
  id = "fr-par/43824575-f2e2-4f4a-abf5-0695f1b9e03c"
  to = scaleway_rdb_database_backup.foobar
}
terraform plan -generate-config-out=generated.tf
resource "scaleway_rdb_database_backup" "foobar" {
  database_name = "foobar"
  expires_at    = "2023-12-14T23:00:00Z"
  instance_id   = "fr-par/699cc143-b961-4885-85ec-6c6ab4229b16"
  name          = "backup_rdb-stoic-hellman_20231208"
  region        = "fr-par"
# We are missing SameRegion boolean
# instance Name
# Size
# Expires, CreatedAt, UpdatedAt 
}
@remyleone remyleone added bug rdb Managed MySQL and PostgreSQL issues, bugs and feature requests priority:highest Bugs filled by customers, security issues labels Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug priority:highest Bugs filled by customers, security issues rdb Managed MySQL and PostgreSQL issues, bugs and feature requests
Projects
None yet
Development

No branches or pull requests

2 participants