-
Notifications
You must be signed in to change notification settings - Fork 60
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] Opensearch ISM Policy resource #121
Comments
[Untriage] |
The following example works with the attached json. I am able to create the policy and re-apply does not show changes. OpenSearch v2.11.0
The equivalent code with inline json
json objects related issue hashicorp/terraform-provider-awscc#509 |
Hey @rblcoder, |
@dirnikk I am able to create the policy through this code without manual creating the policy through OpenSearch UI or API. |
@rblcoder thanks again, Could you please paste the exact code that you are using to create the resource? provider config:
Thanks! |
@dirnikk Here is the exact code
|
Running into both of these issues with latest provider version 2.3.0. Can this be reopened? |
It seems that there are 2 issues with the resource
opensearch_ism_policy
:If the resource is not created beforehand it gives the following error:
The correct behaviour should be if there is no such policy let Terraform create it. This is the logic for a resource in Terraform in general. If I want to manager resources created outside of Terraform I should import them.
The resource works like semi-apply-import thing.
I noticed similar behaviour with
role_mapping
resource the difference is that once the changes from Terraform are applied it does not tries to reapply the same changes on next Terraform run.The code completes successfully and the modifications are done.
However, if I run the same code again it tries to apply the same changes again and I don't understand why.
The expected behaviour is once the changes are applied to not re-apply the same thing again.
I compared line by line with what I have in the JSON Policy in Opensearch dashboard and what I have in the policy_document.json file. They are the same.
Also there is a configuration in the json policy file for all 3 attributes that Terraform wants to update.
Any information will be much appreciated, thank you :)
The text was updated successfully, but these errors were encountered: