Resource: aws_transfer_agreement

Provides a AWS Transfer AS2 Agreement resource.

Example Usage

Basic

resource "aws_transfer_agreement" "example" {
  access_role        = aws_iam_role.test.arn
  base_directory     = "/DOC-EXAMPLE-BUCKET/home/mydirectory"
  description        = "example"
  local_profile_id   = aws_transfer_profile.local.profile_id
  partner_profile_id = aws_transfer_profile.partner.profile_id
  server_id          = aws_transfer_server.test.id
}

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 Transfer AS2 Agreement using the server_id/agreement_id. For example:

import {
  to = aws_transfer_agreement.example
  id = "s-4221a88afd5f4362a/a-4221a88afd5f4362a"
}

Using terraform import, import Transfer AS2 Agreement using the server_id/agreement_id. For example:

% terraform import aws_transfer_agreement.example s-4221a88afd5f4362a/a-4221a88afd5f4362a