Resource: aws_datapipeline_pipeline_definition

Provides a DataPipeline Pipeline Definition resource.

Example Usage

resource "aws_datapipeline_pipeline" "default" {
  name = "tf-pipeline-default"
}

resource "aws_datapipeline_pipeline_definition" "example" {
  pipeline_id = aws_datapipeline_pipeline.default.id
  pipeline_object {
    id   = "Default"
    name = "Default"
    field {
      key          = "workerGroup"
      string_value = "workerGroup"
    }
  }
  pipeline_object {
    id   = "Schedule"
    name = "Schedule"
    field {
      key          = "startDateTime"
      string_value = "2012-12-12T00:00:00"
    }
    field {
      key          = "type"
      string_value = "Schedule"
    }
    field {
      key          = "period"
      string_value = "1 hour"
    }
    field {
      key          = "endDateTime"
      string_value = "2012-12-21T18:00:00"
    }
  }
  pipeline_object {
    id   = "SayHello"
    name = "SayHello"
    field {
      key          = "type"
      string_value = "ShellCommandActivity"
    }
    field {
      key          = "command"
      string_value = "echo hello"
    }
    field {
      key          = "parent"
      string_value = "Default"
    }
    field {
      key          = "schedule"
      string_value = "Schedule"
    }
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

pipeline_object

field

parameter_object

attribute

parameter_value

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_datapipeline_pipeline_definition using the id. For example:

import {
  to = aws_datapipeline_pipeline_definition.example
  id = "df-1234567890"
}

Using terraform import, import aws_datapipeline_pipeline_definition using the id. For example:

% terraform import aws_datapipeline_pipeline_definition.example df-1234567890