Resource: aws_transfer_workflow

Provides a AWS Transfer Workflow resource.

Example Usage

Basic single step example

resource "aws_transfer_workflow" "example" {
  steps {
    delete_step_details {
      name                 = "example"
      source_file_location = "$${original.file}"
    }
    type = "DELETE"
  }
}

Multistep example

resource "aws_transfer_workflow" "example" {
  steps {
    custom_step_details {
      name                 = "example"
      source_file_location = "$${original.file}"
      target               = aws_lambda_function.example.arn
      timeout_seconds      = 60
    }
    type = "CUSTOM"
  }

  steps {
    tag_step_details {
      name                 = "example"
      source_file_location = "$${original.file}"
      tags {
        key   = "Name"
        value = "Hello World"
      }
    }
    type = "TAG"
  }
}

Argument Reference

This resource supports the following arguments:

Workflow Steps

Copy Step Details

Custom Step Details

Decrypt Step Details

Delete Step Details

Tag Step Details

Destination File Location
EFS File Location
S3 File Location
S3 Tag

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 Workflows using the worflow_id. For example:

import {
  to = aws_transfer_workflow.example
  id = "example"
}

Using terraform import, import Transfer Workflows using the worflow_id. For example:

% terraform import aws_transfer_workflow.example example