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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

container: missing region field when importing a cron #2381

Open
norbjd opened this issue Jan 30, 2024 · 0 comments
Open

container: missing region field when importing a cron #2381

norbjd opened this issue Jan 30, 2024 · 0 comments
Assignees
Labels
bug container Container issues, bugs and feature requests priority:medium Improvements that are not the main priority

Comments

@norbjd
Copy link

norbjd commented Jan 30, 2024

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

  • Terraform v1.7.0
  • provider registry.terraform.io/scaleway/scaleway v2.36.0

Affected Resource(s)

  • scaleway_container_cron

Terraform Configuration Files

terraform {
  required_providers {
    scaleway = {
      source  = "scaleway/scaleway"
      version = "2.36.0"
    }
  }
}

provider "scaleway" {}

resource "scaleway_container_cron" "test" {
  name = "test"
}

Expected Behavior

After terraform importing a scaleway_container_cron, the region field should be set to the cron's region.

Actual Behavior

After terraform importing a scaleway_container, the region field is null.

So, if we run terraform apply after importing, Terraform will try to recreate the scaleway_container_cron resource.

Steps to Reproduce

  1. create a container cron (outside Terraform)
  2. import the cron with terraform import scaleway_container_cron.test fr-par/11111111-1111-1111-1111-111111111111
  3. check the region field: jq '.resources[] | select(.name == "test") | .instances[0].attributes.region' terraform.tfstate

References

@norbjd norbjd added bug container Container issues, bugs and feature requests labels Jan 30, 2024
@norbjd norbjd changed the title container: missing region field when importing container: missing region field when importing a cron Jan 30, 2024
@yfodil yfodil added the priority:medium Improvements that are not the main priority label Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug container Container issues, bugs and feature requests priority:medium Improvements that are not the main priority
Projects
None yet
Development

No branches or pull requests

3 participants