-
Notifications
You must be signed in to change notification settings - Fork 2
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
Import fleet package policy #25
Comments
I wonder why you are not getting a diff. Is that because some variables are marked as
No, I haven't tried. This assumes you are creating package policies (setting up the module variables) to match what you had in Fleet. As you probably know,
I see that there is a PR open for those resources at |
Hi @andrewkroh Thanks for you response and especially thanks for pointing me to I am well aware, that |
Hi @andrewkroh
Sorry for approaching you directly this way.
I found this repository by your mention in elastic/terraform-provider-elasticstack#89 (comment) . I was able to use the https://github.com/Mastercard/restapi provider to create fleet package policies. In this case also the further life cycle does work pretty well. But now I have an existing Elasticstack deployment (in Elastic Cloud) where I need to import the current state into terraform. Importing resources with the https://github.com/Mastercard/restapi provider is somewhat supported, but basically it just creates the necessary "link" between the terraform configuration and the resource (by linking the configuration to the ID) and if I run
terraform plan
right after the import, the complete resource is reported as changed without presenting a proper diff. Therefore it is always unclear, if the configuration I have in terraform actually does match the configuration in the cluster, which leaves me with unease.Given this situation, I have the following questions:
terraform plan
does show no differences?The text was updated successfully, but these errors were encountered: