Skip to content

Commit

Permalink
example fix and labels
Browse files Browse the repository at this point in the history
  • Loading branch information
probakowski authored and github-actions committed Nov 15, 2024
1 parent c43e3e6 commit c5df436
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ description: This page describes the supported values of the teleport_dynamic_wi
## Example Usage

```hcl
# Teleport Database
resource "teleport_dynamic_windows_desktop" "example" {
version = "v1"
metadata = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Teleport Database

resource "teleport_dynamic_windows_desktop" "example" {
version = "v1"
metadata = {
Expand Down
10 changes: 6 additions & 4 deletions lib/services/presets.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,12 +578,14 @@ func NewPresetTerraformProviderRole() types.Role {
Spec: types.RoleSpecV6{
Allow: types.RoleConditions{
// In Teleport, you can only see what you have access to. To be able to reconcile
// Apps, Databases, and Nodes, Terraform must be able to access them all.
// Apps, Databases, Dynamic Windows Desktops, and Nodes, Terraform must be able to
// access them all.
// For Databases and Nodes, Terraform cannot actually access them because it has no
// Login/user set.
AppLabels: map[string]apiutils.Strings{types.Wildcard: []string{types.Wildcard}},
DatabaseLabels: map[string]apiutils.Strings{types.Wildcard: []string{types.Wildcard}},
NodeLabels: map[string]apiutils.Strings{types.Wildcard: []string{types.Wildcard}},
AppLabels: map[string]apiutils.Strings{types.Wildcard: []string{types.Wildcard}},
DatabaseLabels: map[string]apiutils.Strings{types.Wildcard: []string{types.Wildcard}},
NodeLabels: map[string]apiutils.Strings{types.Wildcard: []string{types.Wildcard}},
WindowsDesktopLabels: map[string]apiutils.Strings{types.Wildcard: []string{types.Wildcard}},
// Every resource currently supported by the Terraform provider.
Rules: []types.Rule{
{
Expand Down

0 comments on commit c5df436

Please sign in to comment.