Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create AWS Amplify Resources with Terraform

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.

like image 436
S-S Avatar asked Nov 18 '20 17:11

S-S


People also ask

What resources does AWS amplify create?

AWS Amplify consists of a set of tools (open source framework, visual development environment, console) and services (web app and static website hosting) to accelerate the development of mobile and web applications on AWS.

How do I deploy AWS amplify?

To manually deploy an app from Amazon S3 or a public URL Sign in to the AWS Management Console and open the Amplify console . At the top of the page, choose Get started. In the Deliver section, choose Get started. On the Host your web app page, choose Deploy without Git provider.


Video Answer


1 Answers

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.

like image 192
Grzegorz Oledzki Avatar answered Sep 21 '22 10:09

Grzegorz Oledzki