Skip to content

Fix example that is too specific to AWS provider #764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/docs/cloud-docs/registry/publish-providers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ Create a file named `version.json` with the following contents. Replace the valu
}
```

Use the [Create a Provider Version endpoint](/terraform/cloud-docs/api-docs/private-registry/provider-versions-platforms#create-a-provider-version) to create a version for your provider. Replace `TOKEN` in the `Authorization` header with your HCP Terraform API token, and replace both instances of `ORG_NAME` with the name of your organization.
Use the [Create a Provider Version endpoint](/terraform/cloud-docs/api-docs/private-registry/provider-versions-platforms#create-a-provider-version) to create a version for your provider. Replace `TOKEN` in the `Authorization` header with your HCP Terraform API token, and replace both instances of `ORG_NAME` with the name of your organization. Replace `TF_PROVIDER_NAME` in the URL path with your terraform provider name

```shell-session
$ curl \
--header "Authorization: Bearer TOKEN" \
--header "Content-Type: application/vnd.api+json" \
--request POST \
--data @payload.json \
https://app.terraform.io/api/v2/organizations/ORG_NAME/registry-providers/private/ORG_NAME/aws/versions
https://app.terraform.io/api/v2/organizations/ORG_NAME/registry-providers/private/ORG_NAME/TF_PROVIDER_NAME/versions
```

The response includes URL links that you will use to upload the `SHA256SUMS` and `SHA256.sig` files.
Expand Down