Skip to content

Add security role data source #177

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 7 commits into from
Oct 31, 2022
Merged

Conversation

k-yomo
Copy link
Contributor

@k-yomo k-yomo commented Oct 30, 2022

Resolves #82

This PR adds security role data-source in reference to existing security role resource.
https://github.com./elastic/terraform-provider-elasticstack/blob/main/internal/elasticsearch/security/role.go

@elasticmachine
Copy link

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@k-yomo k-yomo changed the title Add role data source Add security role data source Oct 30, 2022
@k-yomo k-yomo force-pushed the add-role-data-source branch 5 times, most recently from da43669 to b0b5086 Compare October 30, 2022 06:58
@k-yomo k-yomo force-pushed the add-role-data-source branch from b0b5086 to d07ce1b Compare October 30, 2022 07:07
@k-yomo k-yomo marked this pull request as ready for review October 30, 2022 07:12
tobio
tobio previously approved these changes Oct 30, 2022
Copy link
Member

@tobio tobio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of small nits. LGTM

CHANGELOG.md Outdated
@@ -2,6 +2,7 @@

### Added
- New resource `elasticstack_elasticsearch_logstash_pipeline` to manage Logstash pipelines ([Centralized Pipeline Management](https://www.elastic.co/guide/en/logstash/current/logstash-centralized-pipeline-management.html)) ([#151](https://github.com./elastic/terraform-provider-elasticstack/pull/151))
- Add`elasticstack_elasticsearch_security_role` data source ([#177](https://github.com./elastic/terraform-provider-elasticstack/pull/177))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Add`elasticstack_elasticsearch_security_role` data source ([#177](https://github.com./elastic/terraform-provider-elasticstack/pull/177))
- Add `elasticstack_elasticsearch_security_role` data source ([#177](https://github.com./elastic/terraform-provider-elasticstack/pull/177))

---
# generated by https://github.com./hashicorp/terraform-plugin-docs
page_title: "elasticstack_elasticsearch_security_role Data Source - terraform-provider-elasticstack"
subcategory: ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
subcategory: ""
subcategory: "Security"


# Data Source: elasticstack_elasticsearch_security_role

Use this data source to information about existing Elasticsearch role. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Use this data source to information about existing Elasticsearch role. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html
Use this data source to get information about an existing Elasticsearch role. See, https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html

Maybe there's other words you intended to have here, happy to use those instead too :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, I guess I just deleted it by mistake, fixed🙏
6ec61a4

@k-yomo k-yomo requested a review from tobio October 31, 2022 03:46
@k-yomo
Copy link
Contributor Author

k-yomo commented Oct 31, 2022

Ah, I'll fix merge conflict after another PR gets merged

@tobio tobio merged commit aaa31ce into elastic:main Oct 31, 2022
@k-yomo k-yomo deleted the add-role-data-source branch October 31, 2022 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Data sources for elasticsearch_roles / elasticsearch_role_mapping
3 participants