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

install latest terraform provider not working #341

Closed
ellerbrock opened this issue Jan 12, 2018 · 8 comments
Closed

install latest terraform provider not working #341

ellerbrock opened this issue Jan 12, 2018 · 8 comments

Comments

@ellerbrock
Copy link

hi,

i just found out that there is actually only one terraform provider official available:
https://releases.hashicorp.com/terraform-provider-alicloud/
in version 0.1.0

i wonder why because even on the official terraform provider page its in version 1.5.3 listed:
https://github.com/terraform-providers/terraform-provider-alicloud/releases

my current workaround is to make a hard version:

provider "alicloud" {
  version = ">= 1.5.3"

  access_key = "${var.access_key}"
  secret_key = "${var.secret_key}"
  region     = "${var.region}"
}

and download the plugin manually, rename it like terraform-provider-alicloud_v1.5.3_x4 and drop it in the plugins folder, run again a terraform init and then it's working ...

but boy oh boy what a workaround.

any ideas why its not directly installable via terraform provider?

cheers maik

@ellerbrock
Copy link
Author

what you mean, you know what to do?
the new version have so many more features, in case stuff is stable would be nice to get it out to the community ...

good shit out to the community

@zhuzhih2017
Copy link
Collaborator

@ellerbrock
We are in the process of resolving this problem.

@rouralberto
Copy link

For me, even using Terraform v0.11.2 with provider.alicloud v1.5.3, I get provider.alicloud: AccessKeyId cannot be empty! when I run terraform plan.

@xiaozhu36
Copy link
Collaborator

Hi @roura356a Do you have specified 'access_key' and 'secret_key'? There is two methods to specify them:

  1. specify parameter 'access_key' and 'secret_key' in the provider, like

     provider "alicloud" {
         access_key = "****"
         secret_key = "****"
     }
    
  2. specify parameter 'ALICLOUD_ACCESS_KEY' and 'ALICLOUD_SECRET_KEY' in you environment parameter.

@rouralberto
Copy link

Yes, I specified them. When I run terraform plan I get provider.alicloud: AccessKeyId cannot be empty. I tried to reinstall Terraform and the provider but nothing... :/

@rouralberto
Copy link

rouralberto commented Jan 15, 2018

All good, I reinstalled Terraform using brew this time, installed again the plugin in ~/.terraform.d/plugins/darwin_amd64/terraform-provider-alicloud_v1.6.0 and now it works.

@xiaozhu36
Copy link
Collaborator

xiaozhu36 commented Feb 2, 2018

Hi @ellerbrock Terraform provider official version 1.7.0 has been released. Please update it. Thanks a lot.

Zhuo-An pushed a commit to Zhuo-An/terraform-provider that referenced this issue Oct 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@ellerbrock @rouralberto @xiaozhu36 @zhuzhih2017 and others