Skip to content

Commit

Permalink
chore(docs): add environment variables support for secret and token (#47
Browse files Browse the repository at this point in the history
)
  • Loading branch information
juwit authored Nov 23, 2023
1 parent 2d3062d commit b1e10bb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Terraform Provider Hashicups
# Terraform Clever Cloud Provider

This repo is a companion repo to the [Call APIs with Terraform Providers](https://learn.hashicorp.com/collections/terraform/providers) Learn collection.
The Clever Cloud Provider allows Terraform to manage Clever Cloud resources.

## Build provider

Expand Down
8 changes: 4 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "clevercloud Provider"
subcategory: ""
description: |-
CleverCloud provider allow you to interract with CleverCloud platform.
CleverCloud provider allow you to interact with CleverCloud platform.
---

# clevercloud Provider

CleverCloud provider allow you to interract with CleverCloud platform.
CleverCloud provider allow you to interact with CleverCloud platform.



Expand All @@ -22,5 +22,5 @@ CleverCloud provider allow you to interract with CleverCloud platform.
### Optional

- `endpoint` (String) CleverCloud API endpoint, default to https://api.clever-cloud.com
- `secret` (String, Sensitive) CleverCloud OAuth1 secret, can be took from clever-tools after login
- `token` (String, Sensitive) CleverCloud OAuth1 token, can be took from clever-tools after login
- `secret` (String, Sensitive) CleverCloud OAuth1 secret, can be took from clever-tools after login. This parameter can also be provided via CC_OAUTH_SECRET environment variable.
- `token` (String, Sensitive) CleverCloud OAuth1 token, can be took from clever-tools after login. This parameter can also be provided via CC_OAUTH_TOKEN environment variable.
4 changes: 2 additions & 2 deletions pkg/provider/impl/provider_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ func (p *Provider) Schema(_ context.Context, req provider.SchemaRequest, res *pr
"token": schema.StringAttribute{
Optional: true, // can be read from ~/.config by client
Sensitive: true,
MarkdownDescription: "CleverCloud OAuth1 token, can be took from clever-tools after login",
MarkdownDescription: "CleverCloud OAuth1 token, can be took from clever-tools after login. This parameter can also be provided via CC_OAUTH_TOKEN environment variable.",
},
"secret": schema.StringAttribute{
Optional: true, // // can be read from ~/.config by client
Sensitive: true,
MarkdownDescription: "CleverCloud OAuth1 secret, can be took from clever-tools after login",
MarkdownDescription: "CleverCloud OAuth1 secret, can be took from clever-tools after login. This parameter can also be provided via CC_OAUTH_SECRET environment variable.",
},
"organisation": schema.StringAttribute{
Sensitive: true,
Expand Down

0 comments on commit b1e10bb

Please sign in to comment.