-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add data source for Fleet integration packages (#469)
* Add data source for Fleet integration packages - Used for getting the latest version of an integration package - Add acceptance test - Add docs * changelog * Fix test
- Loading branch information
1 parent
e4e1d06
commit cded411
Showing
10 changed files
with
470 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
subcategory: "Fleet" | ||
layout: "" | ||
page_title: "Elasticstack: elasticstack_fleet_package Data Source" | ||
description: |- | ||
Gets information about a Fleet integration package. | ||
--- | ||
|
||
# Data Source: elasticstack_fleet_package | ||
|
||
This data source provides information about a Fleet integration package. Currently, | ||
the data source will retrieve the latest available version of the package. Version | ||
selection is determined by the Fleet API, which is currently based on semantic | ||
versioning. | ||
|
||
By default, the highest GA release version will be selected. If a | ||
package is not GA (the version is below 1.0.0) or if a new non-GA version of the | ||
package is to be selected (i.e., the GA version of the package is 1.5.0, but there's | ||
a new 1.5.1-beta version available), then the `prerelease` parameter in the plan | ||
should be set to `true`. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
provider "elasticstack" { | ||
kibana {} | ||
} | ||
data "elasticstack_fleet_package" "test" { | ||
name = "tcp" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The package name. | ||
|
||
### Optional | ||
|
||
- `prerelease` (Boolean) Include prerelease packages. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
- `version` (String) The package version. |
7 changes: 7 additions & 0 deletions
7
examples/data-sources/elasticstack_fleet_package/data-source.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
provider "elasticstack" { | ||
kibana {} | ||
} | ||
|
||
data "elasticstack_fleet_package" "test" { | ||
name = "tcp" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.