Closed sleepdan closed 4 months ago
Try to create new folder, move your main.tf
and variables.tf
and run terraform init
there. Also try to create new access key. If this doesn't work, run TF_LOG=debug terraform plan
command and paste here the output.
I am try to get started by this guide: https://cloud.ru/docs/terraform/ug/topics/quickstart.html. I create Access Key (AK) и Secret Key (SK). As say this guide https://cloud.ru/docs/terraform/ug/topics/guides__configuring-terraform-provider.html create config file for CLI (.terraformrc):
When create variables.tf with my access and secret keys (values is ommited):
For testing create a simple terraform config main.tf:
Run % terraform init
After all i try run "terraform plan" and get following output with error:
Why??
Terraform Version
Terraform v1.5.7 on darwin_amd64
Affected Resource(s)
Terraform Configuration Files
Debug Output
data.sbercloud_compute_flavors.flavors: Reading...
Planning failed. Terraform encountered an error while generating this plan. │ Error: Authentication failed │ with data.sbercloud_compute_flavors.flavors, │ on main.tf line 20, in data "sbercloud_compute_flavors" "flavors": │ 20: data "sbercloud_compute_flavors" "flavors" {
Panic Output
Expected Behavior
No errors
Actual Behavior
Got error
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan