Comments (5)
@jobcespedes
To error 1, this is correct behavior, as a resource managed with terraform was changed in some kind of way as that should not happen normally.
To error 2, this is also correct behavior, as terraform should only update resources if there are changed in them, which should never result in the "NotChanged" error, did you apply the exact same resource again with the terraform state of the first apply?
from terraform-provider-zitadel.
Hi @stebenz,
- To your first point: got it.
- To your second point: No, No changes were made between first and second run of
terraform apply
. I ended up adding a lifecycle block the resource.
from terraform-provider-zitadel.
Hi @jobcespedes
But with the lifecycle block, there should be no changes on the resource attributes that trigger the calling of the ZITADEL API and then result in the error as really nothing changed.
How is the change in the second apply displayed?
from terraform-provider-zitadel.
I've just run into this issue:
│ Error: failed to update login policy: rpc error: code = FailedPrecondition desc = Errors.Org.LoginPolicy.NotChanged (Org-5M9vdd)
│
│ with zitadel_login_policy.default,
│ on organizations.tf line 58, in resource "zitadel_login_policy" "default":
│ 58: resource "zitadel_login_policy" "default" {
For context: We already had successfully terraformed the zitadel_login_policy
previously. This error happened after we ran Terraform again with a set of changes unrelated to the zitadel_login_policy
resource that caused the error.
Keeping existing resource parameters untouched is something completely normal in the lifecycle of a Terraform project.
from terraform-provider-zitadel.
I'd also like to counter-argument this statement:
To error 1, this is correct behavior, as a resource managed with terraform was changed in some kind of way as that should not happen normally.
I've never seen this behavior with other Terraform providers. Usually, providers just display a warning in the Terraform plan output indicating that something was changed outside of Terraform:
More info can be found here.
from terraform-provider-zitadel.
Related Issues (20)
- Update Documentation to Indicate When Outputs will be Empty HOT 1
- Plugin did not respond HOT 1
- Add ability to override issuer HOT 6
- Add ability to data sources to search by name
- zitadel_trigger_actions (resource) is missing 'FLOW_TYPE_INTERNAL_AUTHENTICATION' value
- SAML applications HOT 5
- unable to obtain client_id/ client_secret from zitadel_org_oidc_idp
- Zitadel provider fails to upload images using resource "zitadel_label_policy" HOT 6
- pulumi zitadel package maintenance HOT 8
- Cloudflare proxy support HOT 5
- Defer/lazy loading of provider configuration HOT 3
- LoginPolicy.hide_password_reset inverts the setting HOT 2
- Datasource Zitadel project roles
- failed to respond to the plugin6.(*GRPCProvider).ReadDataSource call
- Generic OAuth2 IDP provider resource missing on org level HOT 1
- LabelPolicy: add possibility to set theme_mode HOT 1
- Update to `zitadel_smtp_config` fails HOT 3
- Missing 'skip login success page' option for native app redirect settings HOT 2
- Activate smtp config not possible HOT 2
- Terraform provider configuration improvement
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-zitadel.