Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 2.19 KB

README-amplify.md

File metadata and controls

73 lines (52 loc) · 2.19 KB

Amplify resources for terraform-provider-aws

Prerequisite

Install Go language. On macOS, you can use Homebrew:

$ brew install go

Build and install

Checkout repositories:

# origin
git clone https://github.com/terraform-providers/terraform-provider-aws.git

cd terraform-provider-aws

# branches
git remote add amplify https://github.com/k24d/terraform-provider-aws.git
git fetch amplify

Merge branches:

# use the latest release
VERSION=v2.61.0
git reset --hard $VERSION

# create a working branch
git checkout -b amplify

# merge branches
git merge amplify/f-amplify-app -m "Merge remote-tracking branch 'amplify/f-amplify-app' into amplify"
git merge amplify/f-amplify-backend-environment -m "Merge remote-tracking branch 'amplify/f-backend-environment' into amplify"
git merge amplify/f-amplify-branch -m "Merge remote-tracking branch 'amplify/f-amplify-branch' into amplify"
git merge amplify/f-amplify-domain-association -m "Merge remote-tracking branch 'amplify/f-amplify-domain-association' into amplify"
git merge amplify/f-amplify-webhook -m "Merge remote-tracking branch 'amplify/f-amplify-webhook' into amplify"

Build a binary:

go install

Copy the binary to your plugin directory:

VERSION=v2.61.0
cp ~/go/bin/terraform-provider-aws ~/.terraform.d/plugins/terraform-provider-aws_${VERSION}_x4

Configuration

Set aws provider in your main.tf and run terraform init:

provider "aws" {
  version = "~> 2.61"
}

Documentation