Skip to content

Commit 127a6e6

Browse files
committed
docs: permissions if local-id is set
1 parent 64f3d16 commit 127a6e6

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
with:
4343
go-version-file: 'go.mod'
4444
cache: true
45+
- uses: hashicorp/setup-terraform@v2
46+
with:
47+
terraform_wrapper: false
4548
- run: go generate ./...
4649
- name: git diff
4750
run: |

.golangci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ linters:
99
enable:
1010
- durationcheck
1111
- errcheck
12-
- exportloopref
12+
- copyloopvar
1313
- forcetypeassert
1414
- godot
1515
- gofmt
@@ -20,8 +20,8 @@ linters:
2020
- nilerr
2121
- predeclared
2222
- staticcheck
23-
- tenv
23+
- usetesting
2424
- unconvert
2525
- unparam
2626
- unused
27-
- vet
27+
- govet

docs/resources/tenant.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Read-Only:
6767
Optional:
6868

6969
- `landing_zone_identifier` (String) Identifier of landing zone to assign to this tenant.
70-
- `local_id` (String) Tenant ID local to the platform (e.g. GCP project ID, Azure subscription ID). Setting the local ID means that a tenant with this ID should be imported into meshStack. Not setting a local ID means that a new tenant should be created. Field will be empty until a successful replication has run.
70+
- `local_id` (String) Tenant ID local to the platform (e.g. GCP project ID, Azure subscription ID). Setting the local ID means that a tenant with this ID should be imported into meshStack. Not setting a local ID means that a new tenant should be created. Field will be empty until a successful replication has run. **Note:** Importing is a high-privileged operation and setting this field is possible only when using API Keys with admin permissions for saving tenants.
7171
- `quotas` (Attributes List) Set of applied tenant quotas. By default the landing zone quotas are applied to new tenants. (see [below for nested schema](#nestedatt--spec--quotas))
7272

7373
<a id="nestedatt--spec--quotas"></a>

internal/provider/tenant_resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (r *tenantResource) Schema(_ context.Context, _ resource.SchemaRequest, res
111111
PlanModifiers: []planmodifier.Object{objectplanmodifier.RequiresReplace()},
112112
Attributes: map[string]schema.Attribute{
113113
"local_id": schema.StringAttribute{
114-
MarkdownDescription: "Tenant ID local to the platform (e.g. GCP project ID, Azure subscription ID). Setting the local ID means that a tenant with this ID should be imported into meshStack. Not setting a local ID means that a new tenant should be created. Field will be empty until a successful replication has run.",
114+
MarkdownDescription: "Tenant ID local to the platform (e.g. GCP project ID, Azure subscription ID). Setting the local ID means that a tenant with this ID should be imported into meshStack. Not setting a local ID means that a new tenant should be created. Field will be empty until a successful replication has run. **Note:** Importing is a high-privileged operation and setting this field is possible only when using API Keys with admin permissions for saving tenants.",
115115
Optional: true,
116116
Computed: true,
117117
},

0 commit comments

Comments
 (0)