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 / airflow_role action is not deleted #43

Open
Jeoffreybauvin opened this issue Jan 9, 2024 · 1 comment
Open

BUG / airflow_role action is not deleted #43

Jeoffreybauvin opened this issue Jan 9, 2024 · 1 comment

Comments

@Jeoffreybauvin
Copy link

Jeoffreybauvin commented Jan 9, 2024

Hi there,

I'm using this code :

resource "airflow_role" "example" {
  name   = "example"

  action {
    action   = "can_read"
    resource = "Audit Logs"
  }

  action {
    action   = "can_edit"
    resource = "Audit Logs"
  }
}

There is no problem on the creation side. Role is created :

image

  # airflow_role.example will be created
  + resource "airflow_role" "example" {
      + id   = (known after apply)
      + name = "example"

      + action {
          + action   = "can_edit"
          + resource = "Audit Logs"
        }
      + action {
          + action   = "can_read"
          + resource = "Audit Logs"
        }
    }

But if I delete the last action, it's not deleted on airflow's side :

  # airflow_role.example will be updated in-place
  ~ resource "airflow_role" "example" {
        id   = "example"
        name = "example"

      - action {
          - action   = "can_edit" -> null
          - resource = "Audit Logs" -> null
        }

        # (1 unchanged block hidden)
    }
airflow_role.example: Modifying... [id=example]
airflow_role.example: Modifications complete after 1s [id=example]

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

image

I'm using the last version of the provider :).

@Jeoffreybauvin
Copy link
Author

Sadly, it's not the provider, it's airflow :( : apache/airflow#25734

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant