Skip to content

Commit

Permalink
Update migration instructions (#72)
Browse files Browse the repository at this point in the history
The Terraform refresh command has been deprecated.
  • Loading branch information
johan3141592 authored May 16, 2023
1 parent 49f12a3 commit e191f76
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 12 deletions.
11 changes: 8 additions & 3 deletions docs/guides/upgrade_guide_v0.3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,20 @@ v0.3.0 introduces breaking changes to the following resources:
* `polaris_azure_service_principal`
* `polaris_gcp_project`

After the Terraform configuration files has been updated according to the instructions in this guide, validate their
correctness by running:
After the Terraform configuration files have been updated according to the instructions in this guide and the version
number has been bumped, update the RSC Terraform provider by running:
```bash
$ terraform init -upgrade
```

Next, validate the correctness of the Terraform configuration files by running:
```bash
$ terraform plan
```

If this doesn't produce any error, proceed by running:
```bash
$ terraform refresh
$ terraform apply -refresh-only
```
This will read the remote state of the resources and migrate the local Terraform state to v0.3.0.

Expand Down
11 changes: 8 additions & 3 deletions docs/guides/upgrade_guide_v0.6.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,20 @@ subcategory: "Upgrade"
v0.6.0 introduces breaking changes to the following resources:
* `polaris_azure_exocompute`

After the Terraform configuration files has been updated according to the instructions in this guide, validate their
correctness by running:
After the Terraform configuration files have been updated according to the instructions in this guide and the version
number has been bumped, update the RSC Terraform provider by running:
```bash
$ terraform init -upgrade
```

Next, validate the correctness of the Terraform configuration files by running:
```bash
$ terraform plan
```

If this doesn't produce any error, proceed by running:
```bash
$ terraform refresh
$ terraform apply -refresh-only
```
This will read the remote state of the resources and migrate the local Terraform state to v0.6.0.

Expand Down
11 changes: 8 additions & 3 deletions templates/guides/upgrade_guide_v0.3.0.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,20 @@ v0.3.0 introduces breaking changes to the following resources:
* `polaris_azure_service_principal`
* `polaris_gcp_project`

After the Terraform configuration files has been updated according to the instructions in this guide, validate their
correctness by running:
After the Terraform configuration files have been updated according to the instructions in this guide and the version
number has been bumped, update the RSC Terraform provider by running:
```bash
$ terraform init -upgrade
```

Next, validate the correctness of the Terraform configuration files by running:
```bash
$ terraform plan
```

If this doesn't produce any error, proceed by running:
```bash
$ terraform refresh
$ terraform apply -refresh-only
```
This will read the remote state of the resources and migrate the local Terraform state to v0.3.0.

Expand Down
11 changes: 8 additions & 3 deletions templates/guides/upgrade_guide_v0.6.0.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,20 @@ subcategory: "Upgrade"
v0.6.0 introduces breaking changes to the following resources:
* `polaris_azure_exocompute`

After the Terraform configuration files has been updated according to the instructions in this guide, validate their
correctness by running:
After the Terraform configuration files have been updated according to the instructions in this guide and the version
number has been bumped, update the RSC Terraform provider by running:
```bash
$ terraform init -upgrade
```

Next, validate the correctness of the Terraform configuration files by running:
```bash
$ terraform plan
```

If this doesn't produce any error, proceed by running:
```bash
$ terraform refresh
$ terraform apply -refresh-only
```
This will read the remote state of the resources and migrate the local Terraform state to v0.6.0.

Expand Down

0 comments on commit e191f76

Please sign in to comment.