-
Notifications
You must be signed in to change notification settings - Fork 674
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
Resource: ibm_resource_key is always recreated even when no changes are available for service Role #3803
Comments
Please note the following: We initially tried to create a resource with the followig
It failed with the following error:
We later changed the resource to
This worked fine for the first |
Resource: ibm_resource_key is always recreated even when no changes are available for service Role
We observe this behaviour for Service Roles
Example: Device-Manager in Event Notifications service. Other roles such as Event-Source-Manager, Channel-Editor also has the same behaviour.
Community Note
Terraform CLI and Terraform IBM Provider Version
prashanthbhat@Prashanths-MacBook-Pro EN-TF-new % terraform -v
Terraform v1.2.1
on darwin_amd64
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
The output of the terraform apply commands are avilable in the attacment below
output.txt
Panic Output
Expected Behavior
If there are no changes in the TF configuration, even multiple execution of
terraform apply
should not regenerate the Service Credentials ( and hence API keys).Actual Behavior
We run the TF configuration mentioned above.
On running it the second time without any changes, it recreates the Service Credentials.
As a result, each run of terraform creates a new API key
Steps to Reproduce
terraform apply
terraform apply
# without any changes to the tf configration. See that a new service credential has been wrongly generatedImportant Factoids
terraform apply
Note: Event notification service defines this service role with "Device-Manager" as the name and "Device Manager" as the Display name in IAM.
References
The text was updated successfully, but these errors were encountered: