Description
Please add a clear and concise description of what the bug is.
Steps to reproduce
- Define a git instance resource
resource "stackit_git" "instance" {
project_id = var.stackit_project_id
name = "cannot-update-acls"
flavor = "git-10"
acl = [ "0.0.0.0/0" ]
}
- Create the instance (apply)
- Modify the ACL
resource "stackit_git" "instance" {
project_id = var.stackit_project_id
name = "cannot-update-acls"
flavor = "git-10"
acl = [ "127.0.0.1/32" ]
}
- Update the instance (apply)
-
Note the "forces replacement" warning
-
Additionally, if the user proceeds with the apply, nothing actually takes place. The instance is not updated or deleted. Instead an error message informs the user that updating git instances is not supported.
w. First apply (create) a git instance with a terraform block such as
resource "stackit_git" "git_10" {
project_id = var.stackit_project_id
name = "cannot-update-acls"
flavor = "git-10"
acl = [ "0.0.0.0/0" ]
}
Actual behavior
- When the user attempts to update a Git instance access-control-list, the provider warns the user that this will force a replacement of the git instance (1 to destory, 1 to create)
- If the user proceeds with the apply, the provider logs an error stating that the update flow is not supported.
Expected behavior
- A user should be able to change the access-control-list without this being flagged as a replacement.
- The user should be able to update git resources.
Environment
- OS: darwin_arm64
- Terraform version (see
terraform --version): v1.15.8
- Version of the STACKIT Terraform provider:
v0.106.0
Additional information
Feel free to add any additional information here.
Description
Please add a clear and concise description of what the bug is.
Steps to reproduce
Note the "forces replacement" warning
Additionally, if the user proceeds with the apply, nothing actually takes place. The instance is not updated or deleted. Instead an error message informs the user that updating git instances is not supported.
w. First apply (create) a git instance with a terraform block such as
Actual behavior
Expected behavior
Environment
terraform --version):v1.15.8v0.106.0Additional information
Feel free to add any additional information here.