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

[BUG] - mgc_network_vpcs always forces resource replacement #71

Open
nawarian opened this issue Dec 13, 2024 · 0 comments
Open

[BUG] - mgc_network_vpcs always forces resource replacement #71

nawarian opened this issue Dec 13, 2024 · 0 comments
Assignees
Labels
bug Something isn't working waiting triage

Comments

@nawarian
Copy link

nawarian commented Dec 13, 2024

Describe the bug

Every time I run tofu apply on a project that contains a mgc_network_vpcs resource, this resource is recreated.

To Reproduce

Simplest .tf file:

terraform {
  required_providers {
    mgc = {
      source  = "registry.terraform.io/MagaluCloud/mgc"
      version = "0.30.0"
    }
  }
}

provider "mgc" {
  api_key = "[your-api-key]"
}

resource "mgc_network_vpcs" "test-vpc" {
  name = "test-vpc"
}

Steps to reproduce the behavior:

  1. Save the above contents into main.tf
  2. Run tofu apply, a vpc resource should be created
  3. Run tofu apply again, the tool will attempt to replace the former VPC and a new id will be given

Expected behavior

If the VPC has been created before, I expect no changes in the mgc_network_vpcs.resource.id value.

Desktop (please complete the following information):

  • OS: Ubuntu 22.04.5 LTS
  • MGC terraform provider v0.30.0
  • mgccli v0.31.0
  • OpenTofu v1.8.7
@nawarian nawarian added bug Something isn't working waiting triage labels Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting triage
Projects
None yet
Development

No branches or pull requests

2 participants