Resource: aws_transfer_connector

Provides a AWS Transfer AS2 Connector resource.

Example Usage

Basic

resource "aws_transfer_connector" "example" {
  access_role = aws_iam_role.test.arn
  as2_config {
    compression           = "DISABLED"
    encryption_algorithm  = "AWS128_CBC"
    message_subject       = "For Connector"
    local_profile_id      = aws_transfer_profile.local.profile_id
    mdn_response          = "NONE"
    mdn_signing_algorithm = "NONE"
    partner_profile_id    = aws_transfer_profile.partner.profile_id
    signing_algorithm     = "NONE"
  }
  url = "http://www.test.com"
}

SFTP Connector

resource "aws_transfer_connector" "example" {
  access_role = aws_iam_role.test.arn
  sftp_config {
    trusted_host_keys = ["ssh-rsa AAAAB3NYourKeysHere"]
    user_secret_id    = aws_secretsmanager_secret.example.id
  }
  url = "sftp://test.com"
}

Argument Reference

This resource supports the following arguments:

As2Config Details

SftpConfig Details

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 Connector using the connector_id. For example:

import {
  to = aws_transfer_connector.example
  id = "c-4221a88afd5f4362a"
}

Using terraform import, import Transfer AS2 Connector using the connector_id. For example:

% terraform import aws_transfer_connector.example c-4221a88afd5f4362a