8

Is it possible to create an AWS Amplify project containing auth and storage resources using Terraform?

The goal is to link an Android client project with Amplify resources created using a Terraform template.

For example: I want to amplify pull from my Android Studio terminal to link the project to AWS (where the Amplify project has already been created by Terraform) and generate the configuration files.

nonbeing
  • 6,907
  • 6
  • 36
  • 46
S-S
  • 81
  • 1
  • 3
  • 1
    See this PR to the terraform AWS provider: https://github.com/hashicorp/terraform-provider-aws/pull/15966 – cbare Feb 27 '21 at 07:33

1 Answers1

2

It might have not been the case when the question was asked, but now a aws_amplify_app is available as a resource type in the standard AWS provider for Terraform.

You can use:

resource "aws_amplify_app" "example" {
  name       = "example"
  repository = "https://github.com/example/app"
}

For details consult the docs for aws_amplify_app.

Grzegorz Oledzki
  • 23,614
  • 16
  • 68
  • 106