Closed DJLemkes closed 1 year ago
Thanks @DJLemkes ill look at this over the coming weekend and test it.
Hi @DrFaust92, any chance you were able to check it out?
yeah ive looked into this a bit, im not sure about this change. i think it might be easier to do some kind of state check and suppress diff (if new user value is email ). let me try to test this on the side.
Reason is that GCP Cloud Composer changes username upon first user login. This makes Terraform think that the user has been deleted. An Airflow user is not only unique by its username but also e-mail. So changing the Terraform user id to e-mail fixes is safe.
note: I don't have any prior Go experience so excuse me for any non-idiomatic Go use. Happy to update!