Skip to content

Commit

Permalink
First generated resources
Browse files Browse the repository at this point in the history
  • Loading branch information
papegaaij committed Oct 13, 2023
1 parent f0c0b74 commit e414adc
Show file tree
Hide file tree
Showing 22 changed files with 1,771 additions and 1,431 deletions.
110 changes: 55 additions & 55 deletions docs/resources/group.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/resources/vaultrecord.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Optional:
<a id="nestedatt--links"></a>
### Nested Schema for `links`

Optional:
Read-Only:

- `href` (String)
- `id` (Number)
Expand Down
45 changes: 22 additions & 23 deletions examples/provider-install-verification/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ provider "keyhubpreview" {
clientsecret = var.keyhub_secret_local
}

data "keyhubpreview_group" "test" {
# uuid = "2fb85263-6406-44f9-9e8a-b1a6d1f43250"
uuid = "c6c98d08-2cbf-45e9-937a-c5c0427348e2"
additional = ["accounts"]
}
#data "keyhubpreview_group" "test" {
# # uuid = "2fb85263-6406-44f9-9e8a-b1a6d1f43250"
# uuid = "c6c98d08-2cbf-45e9-937a-c5c0427348e2"
# additional = ["accounts"]
#}

#output "data_group" {
# value = data.keyhubpreview_group.test
Expand All @@ -42,29 +42,28 @@ data "keyhubpreview_group" "test" {
# value = data.keyhubpreview_client.test
#}

resource "keyhubpreview_vaultrecord" "terrarecord" {
name = "Terraform Record"
group_uuid = data.keyhubpreview_group.test.uuid
#resource "keyhubpreview_vaultrecord" "terrarecord" {
# name = "Terraform Record"
# group_uuid = data.keyhubpreview_group.test.uuid
# additional_objects = {
# secret = {
# password = "test3"
# }
# }
#}

resource "keyhubpreview_group" "terra" {
name = "Terraform x"
additional_objects = {
secret = {
password = "test3"
accounts = {
items = [{
uuid = "7ea6622b-f9d2-4e52-a799-217b26f88376"
rights = "MANAGER"
}]
}
}
}

#resource "keyhubpreview_group" "terra" {
# name = "Terraform"
# additional_objects = {
# accounts = {
# items = [{
# uuid = "7ea6622b-f9d2-4e52-a799-217b26f88376"
# rights = "MANAGER"
# }]
# }
# }
# admin = true
#}
#
#output "resource_group" {
# value = resource.keyhubpreview_group.terra
#}
70 changes: 35 additions & 35 deletions internal/provider/full-data-struct-ds.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e414adc

Please sign in to comment.