OCI Terraform Provider for Apple M1

Provider registry.terraform.io/hashicorp/oci v4.53.0 does not have a package available for your current platform, darwin_arm64.

1.

# brew install terraform
# terraform -v

2.

# brew install go
# go version

3.

# go get golang.org/x/tools/cmd/goimports

4.

# export GOPATH=$HOME/go
# export PATH=$GOPATH/bin:$PATH

5.

# mkdir -p $GOPATH/src/github.com/terraform-providers
# cd $GOPATH/src/github.com/terraform-providers
# git clone https://github.com/terraform-providers/terraform-provider-oci.git
# cd terraform-provider-oci
# git checkout v4.54.0

6.

# make fmt
# make build

7.

# mkdir -p ~/.terraform.d/plugins/registry.terraform.io/hashicorp/oci/4.54.0/darwin_arm64/# cp $GOPATH/bin/terraform-provider-oci ~/.terraform.d/plugins/registry.terraform.io/hashicorp/oci/4.54.0/darwin_arm64

8.

terraform {
required_providers {
oci = {
source = “hashicorp/oci”
}
}
}

--

--

--

I’m a solution engineer, developer, and architect with strong technical and social skills. My specialties are application development, architecture, and cloud.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Bela Lugosi’s Thread

How to setup your Intellj IDEA project for Selenium web driver

WSO2 log monitoring with Fluend

Legacy System Modernization

What is Dockerfile and Basics of Dockerfile

3 IT outsourcing models: Fixed Price vs Time-and-Materials vs Dedicated Teams

My Ruby CLI Application — Learning to work with APIs and Metaprogamming

The Industrial Revolution of Application Security

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ivan Delić

Ivan Delić

I’m a solution engineer, developer, and architect with strong technical and social skills. My specialties are application development, architecture, and cloud.

More from Medium

Beginners Guide to HashiCorp Packer.

Managing Repositories in GitHub via Terraform (Part 1)

Running Terraform with Cloudify (part 2)

Find Security Violations of IaC in Private GitHub Repository