-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CDPCP-11953 Added workload password to machine user resource
- Added a sensitive field called workload_password to machine user schema. It is updateable - Added missing IAM examples - Added missing doc template files
- Loading branch information
Showing
44 changed files
with
674 additions
and
106 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
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 |
---|---|---|
|
@@ -50,9 +50,9 @@ resource "cdp_environments_azure_environment" "example-env" { | |
storage_location_base = "abfs://[email protected]" | ||
managed_identity = "/subscriptions/123e4567-e89b-12d3-a456-426614174000/resourcegroups/my-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/logger" | ||
} | ||
resource_group_name = "rg-name" | ||
resource_group_name = "rg-name" | ||
encryption_user_managed_identity = "some-identity" | ||
use_public_ip = true | ||
use_public_ip = true | ||
} | ||
output "environment_name" { | ||
|
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
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,49 @@ | ||
--- | ||
page_title: "cdp_iam_machine_user_group_assignment Resource - terraform-provider-cdp" | ||
subcategory: "iam" | ||
description: |- | ||
--- | ||
|
||
# cdp_iam_machine_user_group_assignment (Resource) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
## Copyright 2024 Cloudera. All Rights Reserved. | ||
# | ||
# This file is licensed under the Apache License Version 2.0 (the "License"). | ||
# You may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS | ||
# OF ANY KIND, either express or implied. Refer to the License for the specific | ||
# permissions and limitations governing your use of the file. | ||
resource "cdp_iam_machine_user_group_assignment" "example" { | ||
machine_user = "example" | ||
group = "some-group" | ||
} | ||
output "machine_user" { | ||
value = cdp_iam_machine_user_group_assignment.example.machine_user | ||
} | ||
output "role" { | ||
value = cdp_iam_machine_user_group_assignment.example.group | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `group` (String) | ||
- `machine_user` (String) | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. |
51 changes: 51 additions & 0 deletions
51
docs/resources/iam_machine_user_resource_role_assignment.md
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,51 @@ | ||
--- | ||
page_title: "cdp_iam_machine_user_resource_role_assignment Resource - terraform-provider-cdp" | ||
subcategory: "iam" | ||
description: |- | ||
--- | ||
|
||
# cdp_iam_machine_user_resource_role_assignment (Resource) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
## Copyright 2024 Cloudera. All Rights Reserved. | ||
# | ||
# This file is licensed under the Apache License Version 2.0 (the "License"). | ||
# You may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS | ||
# OF ANY KIND, either express or implied. Refer to the License for the specific | ||
# permissions and limitations governing your use of the file. | ||
resource "cdp_iam_machine_user_resource_role_assignment" "example" { | ||
machine_user = "example" | ||
resource_crn = "crn:cdp:environments:us-west-1:00000000-0000-0000-0000-000000000000:environment:00000000-0000-0000-0000-000000000000" | ||
resource_role_crn = "crn:altus:iam:us-west-1:altus:resourceRole:EnvironmentUser" | ||
} | ||
output "machine_use" { | ||
value = cdp_iam_machine_user_resource_role_assignment.example.machine_user | ||
} | ||
output "resource_role_crn" { | ||
value = cdp_iam_machine_user_resource_role_assignment.example.resource_role_crn | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `machine_user` (String) The machine user the role is assigned to. Can be the machine user’s name or CRN. | ||
- `resource_crn` (String) The resource for which the resource role rights are granted. | ||
- `resource_role_crn` (String) The CRN of the resource role to assign to the machine user. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. |
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,49 @@ | ||
--- | ||
page_title: "cdp_iam_machine_user_role_assignment Resource - terraform-provider-cdp" | ||
subcategory: "iam" | ||
description: |- | ||
--- | ||
|
||
# cdp_iam_machine_user_role_assignment (Resource) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
## Copyright 2024 Cloudera. All Rights Reserved. | ||
# | ||
# This file is licensed under the Apache License Version 2.0 (the "License"). | ||
# You may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS | ||
# OF ANY KIND, either express or implied. Refer to the License for the specific | ||
# permissions and limitations governing your use of the file. | ||
resource "cdp_iam_machine_user_role_assignment" "example" { | ||
machine_user = "example" | ||
role = "some-role" | ||
} | ||
output "machine_use" { | ||
value = cdp_iam_machine_user_role_assignment.example.machine_user | ||
} | ||
output "role" { | ||
value = cdp_iam_machine_user_role_assignment.example.role | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `machine_user` (String) The machine user the role is assigned to. Can be the machine user’s name or CRN. | ||
- `role` (String) The role to assign to the machine user. Can be the role’s name or CRN. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. |
Oops, something went wrong.