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

ACL rules does not converge #949

Closed
remyleone opened this issue Dec 1, 2021 · 0 comments 路 Fixed by #1180
Closed

ACL rules does not converge #949

remyleone opened this issue Dec 1, 2021 · 0 comments 路 Fixed by #1180
Assignees
Labels
bug rdb Managed MySQL and PostgreSQL issues, bugs and feature requests
Projects
Milestone

Comments

@remyleone
Copy link
Member

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

Affected Resource(s)

  • scaleway_rdb_acl

Terraform Configuration Files

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

provider "scaleway" {}

resource "scaleway_rdb_instance" "database" {
  name           = "test-rdb"
  node_type      = "db-dev-s"
  engine         = "PostgreSQL-11"
  is_ha_cluster  = false
  disable_backup = true
  user_name      = "my_initial_user"
  password       = "thiZ_is_v&ry_s3cret"
}

resource "scaleway_instance_ip" "front1_ip" {
}

resource "scaleway_instance_ip" "front2_ip" {
}

resource "scaleway_rdb_acl" "authorized_ips_on_db" {
  instance_id = scaleway_rdb_instance.database.id

  acl_rules {
    ip = "${scaleway_instance_ip.front1_ip.address}/32"
  }

  acl_rules {
    ip = "${scaleway_instance_ip.front2_ip.address}/32"
  }
}

Debug Output

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # scaleway_rdb_acl.authorized_ips_on_db will be updated in-place
  ~ resource "scaleway_rdb_acl" "authorized_ips_on_db" {
        id          = "fr-par/83451687-969a-4fa4-a3ff-a126506e5893"
        # (1 unchanged attribute hidden)

      ~ acl_rules {
          - description = "IP allowed" -> null
            # (1 unchanged attribute hidden)
        }
      ~ acl_rules {
          - description = "IP allowed" -> null
            # (1 unchanged attribute hidden)
        }
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value:

Panic Output

Expected Behavior

Actual Behavior

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@Monitob Monitob added the bug label Jan 4, 2022
@Monitob Monitob added this to the v2.2.1 milestone Jan 4, 2022
@remyleone remyleone added this to To do in Main Mar 9, 2022
@remyleone remyleone moved this from To do to In progress in Main Mar 24, 2022
@remyleone remyleone moved this from In progress to To do in Main Mar 24, 2022
@Monitob Monitob moved this from To do to In progress in Main Apr 4, 2022
@Monitob Monitob self-assigned this Apr 4, 2022
@Monitob Monitob moved this from In progress to Review in progress in Main Apr 5, 2022
Main automation moved this from Review in progress to Done Apr 6, 2022
@remyleone remyleone added the rdb Managed MySQL and PostgreSQL issues, bugs and feature requests label Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug rdb Managed MySQL and PostgreSQL issues, bugs and feature requests
Projects
No open projects
Main
Done
Development

Successfully merging a pull request may close this issue.

2 participants