Skip to content

Commit 86cb705

Browse files
Make input optional for Fleet integration policies (#493)
* Make input optional for Fleet integration policies - Relaxed the requirement for input for Fleet integration policies. - Certain integrations, such as the Elastic Agent integration, do not require any additional configuration, which means an input would not be provided. * Changelog
1 parent 6233f9a commit 86cb705

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
### Fixed
88
- Rename fleet package objects to `elasticstack_fleet_integration` and `elasticstack_fleet_integration_policy` ([#476](https://github.com/elastic/terraform-provider-elasticstack/pull/476))
99
- Fix a provider crash when managing SLOs outside of the default Kibana space. ([#485](https://github.com/elastic/terraform-provider-elasticstack/pull/485))
10+
- Make input optional for `elasticstack_fleet_integration_policy` ([#493](https://github.com/elastic/terraform-provider-elasticstack/pull/493))
1011

1112
## [0.10.0] - 2023-11-02
1213

docs/resources/fleet_integration_policy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ resource "elasticstack_fleet_integration_policy" "sample" {
8383
### Required
8484

8585
- `agent_policy_id` (String) ID of the agent policy.
86-
- `input` (Block List, Min: 1) (see [below for nested schema](#nestedblock--input))
8786
- `integration_name` (String) The name of the integration package.
8887
- `integration_version` (String) The version of the integration package.
8988
- `name` (String) The name of the integration policy.
@@ -94,6 +93,7 @@ resource "elasticstack_fleet_integration_policy" "sample" {
9493
- `description` (String) The description of the integration policy.
9594
- `enabled` (Boolean) Enable the integration policy.
9695
- `force` (Boolean) Force operations, such as creation and deletion, to occur.
96+
- `input` (Block List) (see [below for nested schema](#nestedblock--input))
9797
- `policy_id` (String) Unique identifier of the integration policy.
9898
- `vars_json` (String, Sensitive) Integration-level variables as JSON.
9999

internal/fleet/integration_policy_resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func ResourceIntegrationPolicy() *schema.Resource {
6464
},
6565
"input": {
6666
Type: schema.TypeList,
67-
Required: true,
67+
Optional: true,
6868
Elem: &schema.Resource{
6969
Schema: map[string]*schema.Schema{
7070
"input_id": {

0 commit comments

Comments
 (0)