doc nits tf provider

This commit is contained in:
Adrian Stobbe 2023-12-15 13:22:51 +01:00
parent 1a13e24428
commit aa01ebc077
3 changed files with 20 additions and 6 deletions

View file

@ -36,6 +36,12 @@ terraform {
} }
``` ```
Make sure to add the devbuild version number (without v prefix) as `<version>`. Alternatively, check the available versions here:
```bash
ls ~/.terraform.d/plugins/registry.terraform.io/edgelesssys/constellation
```
Alternatively, you can configure Terraform to use your binary by setting a [development override](https://developer.hashicorp.com/terraform/cli/config/config-file#development-overrides-for-provider-developers), Alternatively, you can configure Terraform to use your binary by setting a [development override](https://developer.hashicorp.com/terraform/cli/config/config-file#development-overrides-for-provider-developers),
so that the registry path to the provider is replaced with the path to the locally built provider. so that the registry path to the provider is replaced with the path to the locally built provider.
A `config.tfrc` file containing the necessary configuration can be created with the following commands: A `config.tfrc` file containing the necessary configuration can be created with the following commands:

View file

@ -99,7 +99,15 @@ The steps for applying the upgrade are as follows:
- For [local paths as module sources](https://developer.hashicorp.com/terraform/language/modules/sources#local-paths) or when [providing your own infrastructure](#bringing-your-own-infrastructure), see the changes made in the reference modules since the upgrade's origin version and adjust your infrastructure / IAM configuration accordingly. - For [local paths as module sources](https://developer.hashicorp.com/terraform/language/modules/sources#local-paths) or when [providing your own infrastructure](#bringing-your-own-infrastructure), see the changes made in the reference modules since the upgrade's origin version and adjust your infrastructure / IAM configuration accordingly.
4. Upgrade the Terraform module and provider dependencies and apply the targeted configuration. 4. Upgrade the Terraform module and provider dependencies and apply the targeted configuration.
```bash ```bash
terraform init -upgrade terraform init -upgrade
terraform apply TF_LOG=INFO terraform apply
``` ```
While verbose when creating all resources together, we recommend to enable logging to get output during the cluster resource creation.
5. Connect to the cluster
```bash
terraform output -raw kubeconfig > "$(pwd)/constellation-admin.conf"
```

View file

@ -86,7 +86,7 @@ func (a actionFactory) appendNewAction(
return compatibility.NewInvalidUpgradeError( return compatibility.NewInvalidUpgradeError(
currentVersion.String(), currentVersion.String(),
configTargetVersion.String(), configTargetVersion.String(),
fmt.Errorf("this CLI only supports installing microservice version %s", newVersion), fmt.Errorf("this Constellation version only supports installing microservice version %s", newVersion),
) )
} }
@ -114,7 +114,7 @@ func (a actionFactory) appendNewAction(
return compatibility.NewInvalidUpgradeError( return compatibility.NewInvalidUpgradeError(
currentVersion.String(), currentVersion.String(),
configTargetVersion.String(), configTargetVersion.String(),
fmt.Errorf("this CLI only supports upgrading to microservice version %s", newVersion), fmt.Errorf("this Constellation version only supports upgrading to microservice version %s", newVersion),
) )
} }
} else { } else {