-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding ACL User resources, data sources and documentation (#405)
* Adding ACL User resources, data sources and documentation --------- Co-authored-by: Will May <[email protected]>
- Loading branch information
1 parent
2a4f914
commit 67f06f6
Showing
20 changed files
with
976 additions
and
66 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
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,32 @@ | ||
--- | ||
layout: "rediscloud" | ||
page_title: "Redis Cloud: rediscloud_acl_user" | ||
description: |- | ||
ACL User data source in the Terraform provider Redis Cloud. | ||
--- | ||
|
||
# Data Source: rediscloud_acl_user | ||
|
||
The User data source allows access to an existing Rule within your Redis Enterprise Cloud Account. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "rediscloud_acl_user" "example" { | ||
name = "fast-admin-john" | ||
} | ||
output "rediscloud_acl_user" { | ||
value = data.rediscloud_acl_user.example.id | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
* `name` - (Required) The name of the User to filter returned subscriptions | ||
|
||
## Attribute reference | ||
|
||
* `id` - Identifier of the found User. | ||
* `name` - The User's name. | ||
* `role` - The name of the User's Role. |
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
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,69 @@ | ||
--- | ||
layout: "rediscloud" | ||
page_title: "Redis Cloud: rediscloud_acl_user" | ||
description: |- | ||
ACL User resource in the Terraform provider Redis Cloud. | ||
--- | ||
|
||
# Resource: rediscloud_acl_user | ||
|
||
Creates a User in your Redis Enterprise Cloud Account. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "rediscloud_acl_user" "user-resource-implicit" { | ||
name = "fast-admin-john" | ||
# An implicit dependency is recommended | ||
role = rediscloud_acl_role.fast_admin.name | ||
password = "mY.passw0rd" | ||
} | ||
resource "rediscloud_acl_user" "user-resource-explicit" { | ||
name = "fast-admin-john" | ||
role = "fast-admin" | ||
password = "mY.passw0rd" | ||
# An explicit resource dependency can be used if preferred | ||
depends_on = [ | ||
rediscloud_acl_role.fast_admin | ||
] | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `name` - (Required, change forces recreation) A meaningful name for the User. Must be unique. An error occurs if a | ||
user tries to connect to | ||
a `memcached` database with the username `admin`. | ||
* `role` - (Required) The name of the Role held by the User. It is recommended an implicit dependency is used | ||
here. `depends_on` could be used instead by waiting for a Role resource with a matching `name`. | ||
* `password` - (Required, change forces recreation) The password for this ACL User. Must contain a lower-case letter, a | ||
upper-case letter, a | ||
number and a special character. Can be updated but since it is not returned by the API, we have no way of detecting | ||
drift, so the entity would be entirely replaced. Take special care with multiple versions of Terraform State. | ||
|
||
### Timeouts | ||
|
||
The `timeouts` block allows you to | ||
specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: | ||
|
||
* `create` - (Defaults to 5 mins) Used when creating the User. | ||
* `update` - (Defaults to 5 mins) Used when updating the User. | ||
* `delete` - (Defaults to 5 mins) Used when destroying the User. | ||
|
||
## Attribute reference | ||
|
||
* `id` - Identifier of the User created. | ||
* `name` - The User's name. | ||
* `role` - The User's role name. | ||
|
||
## Import | ||
|
||
`rediscloud_acl_user` can be imported using the Identifier of the User, e.g. | ||
|
||
``` | ||
$ terraform import rediscloud_acl_user.user-resource 123456 | ||
``` |
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
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
Oops, something went wrong.