Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
radekska committed Dec 12, 2024
1 parent acc9016 commit 185f803
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
1 change: 0 additions & 1 deletion castai/resource_service_account_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ func resourceServiceAccountKey() *schema.Resource {
FieldServiceAccountKeyToken: {
Type: schema.TypeString,
Computed: true,
Sensitive: true,
Description: "The token of the service account key used for authentication.",
},
},
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/service_account_key.md

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

14 changes: 13 additions & 1 deletion examples/resources/castai_service_account/resource.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
resource "castai_service_account" "service_account" {
organization_id = organization.id
name = "service-account-name"
name = "example-service-account"
description = "service account description"
}

resource "castai_service_account_key" "service_account_key" {
organization_id = data.castai_organization.test.id
service_account_id = castai_service_account.service_account.id
name = "example-key"
active = true
expires_at = "2025-01-01T00:00:00Z"
}

output "service_account_key" {
value = castai_service_account_key.service_account_key.token
}

0 comments on commit 185f803

Please sign in to comment.