terraform-provider-b2 icon indicating copy to clipboard operation
terraform-provider-b2 copied to clipboard

Add ARM Support for Provider

Open jstewart612 opened this issue 2 years ago • 4 comments

Hello. I am interested in having ARM support: https://github.com/Backblaze/terraform-provider-b2/issues/1#issuecomment-772606604

jstewart612 avatar Oct 30 '22 18:10 jstewart612

Hello

can you describe the use case you have? Are you running terraform on r-pi? Why?

ppolewicz avatar Oct 31 '22 01:10 ppolewicz

Hello! I'm interested too; I'm running Atlantis+Terraform on Oracle's Ampere/ARM instances - and I'm probably going to deploy on AWS Graviton instances in the near future, so having ARM support would be great! Please let me know if I can help testing the provider on these platforms.

flaudisio avatar Nov 03 '22 01:11 flaudisio

are you installing it directly on the machine or is it running in a container?

ppolewicz avatar Nov 03 '22 02:11 ppolewicz

It's running in a container.

flaudisio avatar Nov 03 '22 03:11 flaudisio

I would also like to have ARM support.

I am using Terraform to manage my personal AWS resources, and would like to start using Backblaze B2. One of the ways I run simple updates is to SSH to a Pi 4, rather than the Linux laptop.

nwholloway avatar Jan 07 '23 17:01 nwholloway

arm support ?

iamkhalidbashir avatar Aug 22 '23 10:08 iamkhalidbashir

I see that it publishs arm64 binaries but terraform dosent use it

iamkhalidbashir avatar Aug 22 '23 11:08 iamkhalidbashir

it's been tested on an M1 mac and it worked there, so terraform uses it on some platforms. Not sure why it doesn't work for you.

Are you sure you are on arm64? (run uname -a, see what it returns)

ppolewicz avatar Aug 22 '23 23:08 ppolewicz

Running on a Pinebook Pro (Fedora) fails too with:

Error: fork/exec /tmp/py-terraform-provider2621216843: exec format error

The binary file collected by terraform init is correct:

 file terraform-provider-b2_0.8.4 terraform-provider-b2_0.8.4: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, Go BuildID=lmKXX_kJvvEb4HYthzdl/4uKlFH-uHxMm3WKC2GsN/2sqg1emUcsx3NDSEanV9/38iKJpHYWl-OohHZQJ07, stripped

Is it something with the call to the Python lib from Go ?

chriscowley avatar Dec 04 '23 15:12 chriscowley

https://github.com/Backblaze/terraform-provider-b2/pull/62 fixes the issue, v0.8.6 arm64 binaries should be working. Let me know if you encounter any further problems.

vbaltrusaitis-reef avatar Dec 22 '23 16:12 vbaltrusaitis-reef