-
Notifications
You must be signed in to change notification settings - Fork 123
Add security list item #1492
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
Merged
Merged
Add security list item #1492
Changes from 13 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
77b2046
Add security list item resource
nick-benoit 3e36f1b
Add security list item resources
nick-benoit 1847c2a
Add resource to experimental resources
nick-benoit 823380c
Improve meta property handling / include test
nick-benoit c0d0bad
Merge branch 'main' of github.com:elastic/terraform-provider-elastics…
nick-benoit 86907cc
Use composite id
nick-benoit c50ab9a
Fix docs typo
nick-benoit 9e27306
Add import test cases
nick-benoit df5b37a
Add list_item_id to allow manually set human readable id
nick-benoit e7d0ceb
Swap version -> version_id
nick-benoit 26ee41c
Add typeutils package
nick-benoit 4b69c42
Return parsed responses from security_lists client helper
nick-benoit 9c1b4e4
Remove duplicate ensureListIndexExistsInSpace
nick-benoit f6e76be
Update internal/kibana/security_list_item/resource-description.md
nick-benoit 6a2e28e
Add meta to resource.tf example
nick-benoit c69339f
Merge branch 'add_security_list_item_1' of github.com:elastic/terrafo…
nick-benoit 2bb8966
Extract test values into reusable variables
nick-benoit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
examples/resources/elasticstack_kibana_security_list_item/resource.tf
This file contains hidden or 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,13 @@ | ||
| # First create a security list | ||
| resource "elasticstack_kibana_security_list" "my_list" { | ||
| list_id = "allowed_domains" | ||
| name = "Allowed Domains" | ||
| description = "List of allowed domains" | ||
| type = "keyword" | ||
| } | ||
|
|
||
| # Add an item to the list | ||
| resource "elasticstack_kibana_security_list_item" "domain_example" { | ||
| list_id = elasticstack_kibana_security_list.my_list.list_id | ||
| value = "example.com" | ||
| } |
13 changes: 13 additions & 0 deletions
13
examples/resources/elasticstack_kibana_security_list_item/resource_ip.tf
This file contains hidden or 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,13 @@ | ||
| # First create an IP address list | ||
| resource "elasticstack_kibana_security_list" "ip_list" { | ||
| list_id = "allowed_ips" | ||
| name = "Allowed IP Addresses" | ||
| description = "List of allowed IP addresses" | ||
| type = "ip" | ||
| } | ||
|
|
||
| # Add an IP address to the list | ||
| resource "elasticstack_kibana_security_list_item" "ip_example" { | ||
| list_id = elasticstack_kibana_security_list.ip_list.list_id | ||
| value = "192.168.1.1" | ||
| } |
18 changes: 18 additions & 0 deletions
18
examples/resources/elasticstack_kibana_security_list_item/resource_with_meta.tf
This file contains hidden or 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,18 @@ | ||
| # First create a security list | ||
| resource "elasticstack_kibana_security_list" "tagged_domains" { | ||
| list_id = "tagged_domains" | ||
| name = "Tagged Domains" | ||
| description = "Domains with associated metadata" | ||
| type = "keyword" | ||
| } | ||
|
|
||
| # Add an item with metadata | ||
| resource "elasticstack_kibana_security_list_item" "domain_with_meta" { | ||
| list_id = elasticstack_kibana_security_list.tagged_domains.list_id | ||
| value = "internal.example.com" | ||
| meta = jsonencode({ | ||
| category = "internal" | ||
| owner = "infrastructure-team" | ||
| note = "Primary internal domain" | ||
| }) | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.