Open 3kt opened 7 months ago
@andrewkroh would you be able to help route this request. I believe your team developed the terraform provider. TIA
cc: @cmacknz
Looking at the API^1 in Kibana, config
is listed as an object
so it would make sense for the elasticstack_fleet_integration_policy^2 resource to support config_json
as a parameter for the input
blocks.
The API doesn't have a description for config
and apart from this one use-case for Endpoint, I have never seen it. So we need someone from Fleet to describe it for the Terraform documentation.
Adding it to the code here is probably not a big task.
Any plans to implement this in the near term? @henurah
Any plans to implement this in the near term? @henurah
Unfortunately at the moment there's no target delivery of this enhancement
Is your feature request related to a problem? Please describe. Using
elasticstack_fleet_integration_policy
works well for standard TCP / logs integration, as showcased in the documentation, but for the Elastic Defend integration no custom configuration can be applied because of its structure.Describe the resource you would like to have implemented. We'd need some extension of the capabilities of the
/api/fleet/package_policies/[integration ID]
endpoint. We basically need an extension from the capabilities of https://github.com/elastic/terraform-provider-elasticstack/blob/main/internal/fleet/integration_policy_resource.go to support customization for Elastic Defend integration.Describe the solution you'd like I'd like to be able to customize the Elastic Defend integration with the
elasticstack_fleet_integration_policy
resource, the same way the UI offers:Describe alternatives you've considered There is currently no workaround with pure Terraform, as the API endpoint are simply not instrumented in the provider.
Additional context Looking at what Kibana does when saving the integration through the UI, the custom settings of the Defend Integration look like this:
We don't currently have support for
artifact_manifest
andpolicy
, but only thestreams
bit which is unused by the Defend integration.