Resource: aws_amplify_backend_environment

Provides an Amplify Backend Environment resource.

Example Usage

resource "aws_amplify_app" "example" {
  name = "example"
}

resource "aws_amplify_backend_environment" "example" {
  app_id           = aws_amplify_app.example.id
  environment_name = "example"

  deployment_artifacts = "app-example-deployment"
  stack_name           = "amplify-app-example"
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import Amplify backend environment using app_id and environment_name. For example:

import {
  to = aws_amplify_backend_environment.example
  id = "d2ypk4k47z8u6/example"
}

Using terraform import, import Amplify backend environment using app_id and environment_name. For example:

% terraform import aws_amplify_backend_environment.example d2ypk4k47z8u6/example