Skip to content
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

Upgrading Guide #239

Merged
merged 15 commits into from
Oct 2, 2023
40 changes: 40 additions & 0 deletions website/docs/guides/upgrading_to_version_4.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
layout: "selectel"
page_title: "Upgrading Terraform Selectel Provider to version 4.0.0"
sidebar_current: "docs-selectel-guide-upgrade-guide"
description: |-
How to upgrade Terraform Selectel Provider to version 4.0.0.
---

# Upgrading Terraform Selectel Provider to version 4.0.0

To upgrade Terraform Selectel Provider version to the new major version 4.0.0:

1. In the [Control Panel](https://my.selectel.ru/profile/users_management/users?type=service), create a service user with an Account Administrator role. Learn more [how to create a service user](https://docs.selectel.ru/control-panel-actions/users-and-roles/add-user/).
2. Change the authorization block.

From:

```hcl
provider "selectel" {
token = <token>
}
```

To:

```hcl
provider "selectel" {
domain_name = <account_id>
username = <username>
password = <password>
}
```

where:

* `<account_id>` - (Required) Selectel account ID. The account ID is in the top right corner of the [Control panel](https://my.selectel.ru/). For import, use the value in the `OS_DOMAIN_NAME` environment variable. Learn more about [Registration](https://docs.selectel.ru/control-panel-actions/account/registration/).

* `<username>` - (Required) Name of the service user. To get the name, in the top right corner of the [Control panel](https://my.selectel.ru/profile/users_management/users?type=service), go to the account menu ⟶ **Profile and Settings** ⟶ **User management** ⟶ the **Service users** tab ⟶ copy the name of the required user. For import, use the value in the `OS_USERNAME` environment variable. Learn more about [Service users](https://docs.selectel.ru/control-panel-actions/users-and-roles/user-types-and-roles/) and [how to create service user](https://docs.selectel.ru/control-panel-actions/users-and-roles/add-user/#добавить-сервисного-пользователя).

* `<password>` - (Required, Sensitive) Password of the service user. For import, use the value in the `OS_PASSWORD` environment variable.