Resource: aws_transfer_tag

Manages an individual Transfer Family resource tag. This resource should only be used in cases where Transfer Family resources are created outside Terraform (e.g., Servers without AWS Management Console) or the tag key has the aws: prefix.

Example Usage

resource "aws_transfer_server" "example" {
  identity_provider_type = "SERVICE_MANAGED"
}

resource "aws_transfer_tag" "zone_id" {
  resource_arn = aws_transfer_server.example.arn
  key          = "aws:transfer:route53HostedZoneId"
  value        = "/hostedzone/MyHostedZoneId"
}

resource "aws_transfer_tag" "hostname" {
  resource_arn = aws_transfer_server.example.arn
  key          = "aws:transfer:customHostname"
  value        = "example.com"
}

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 aws_transfer_tag using the Transfer Family resource identifier and key, separated by a comma (,). For example:

import {
  to = aws_transfer_tag.example
  id = "arn:aws:transfer:us-east-1:123456789012:server/s-1234567890abcdef0,Name"
}

Using terraform import, import aws_transfer_tag using the Transfer Family resource identifier and key, separated by a comma (,). For example:

% terraform import aws_transfer_tag.example arn:aws:transfer:us-east-1:123456789012:server/s-1234567890abcdef0,Name