Skip to content

Import fleet package policy #25

@breml

Description

@breml

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:

  1. Do you know how to import resources (in particular fleet package policy) with the https://github.com/Mastercard/restapi such that after the import terraform plan does show no differences?
  2. Do you have a time plan, when progress on #elastic/terraform-provider-elasticstack/89 can be expected?
  3. Would a contribution to #elastic/terraform-provider-elasticstack/89 make sense at this point and would it be reviewed / accepted in due time?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions