Resource: aws_appflow_connector_profile

Provides an AppFlow connector profile resource.

For information about AppFlow flows, see the Amazon AppFlow API Reference. For specific information about creating an AppFlow connector profile, see the CreateConnectorProfile page in the Amazon AppFlow API Reference.

Example Usage

data "aws_iam_policy" "example" {
  name = "AmazonRedshiftAllCommandsFullAccess"
}

resource "aws_iam_role" "example" {
  name = "example_role"

  managed_policy_arns = [data.aws_iam_policy.test.arn]

  assume_role_policy = jsonencode({
    Version = "2012-10-17"
    Statement = [
      {
        Action = "sts:AssumeRole"
        Effect = "Allow"
        Sid    = ""
        Principal = {
          Service = "ec2.amazonaws.com"
        }
      },
    ]
  })
}

resource "aws_s3_bucket" "example" {
  bucket = "example_bucket"
}

resource "aws_redshift_cluster" "example" {
  cluster_identifier = "example_cluster"
  database_name      = "example_db"
  master_username    = "exampleuser"
  master_password    = "examplePassword123!"
  node_type          = "dc1.large"
  cluster_type       = "single-node"
}

resource "aws_appflow_connector_profile" "example" {
  name            = "example_profile"
  connector_type  = "Redshift"
  connection_mode = "Public"

  connector_profile_config {

    connector_profile_credentials {
      redshift {
        password = aws_redshift_cluster.example.master_password
        username = aws_redshift_cluster.example.master_username
      }
    }

    connector_profile_properties {
      redshift {
        bucket_name  = aws_s3_bucket.example.name
        database_url = "jdbc:redshift://${aws_redshift_cluster.example.endpoint}/${aws_redshift_cluster.example.database_name}"
        role_arn     = aws_iam_role.example.arn
      }
    }
  }
}

Argument Reference

The AppFlow connector profile argument layout is a complex structure. The following top-level arguments are supports:

Connector Profile Config

Connector Profile Credentials

Amplitude Connector Profile Credentials

Custom Connector Profile Credentials

Datadog Connector Profile Credentials

Dynatrace Connector Profile Credentials

Google Analytics Connector Profile Credentials

Honeycode Connector Profile Credentials

Infor Nexus Connector Profile Credentials

Marketo Connector Profile Credentials

Redshift Connector Profile Credentials

Salesforce Connector Profile Credentials

SAPOData Connector Profile Credentials

ServiceNow Connector Profile Credentials

Singular Connector Profile Credentials

Slack Connector Profile Credentials

Snowflake Connector Profile Credentials

Trendmicro Connector Profile Credentials

Veeva Connector Profile Credentials

Zendesk Connector Profile Credentials

OAuth Request

Connector Profile Properties

Custom Connector Profile Properties

Generic Connector Profile Properties

Datadog, Dynatrace, Infor Nexus, Marketo, ServiceNow, Slack, Veeva, and Zendesk all support the following attributes:

Redshift Connector Profile Properties

Salesforce Connector Profile Properties

SAPOData Connector Profile Properties

Snowflake Connector Profile Properties

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 AppFlow Connector Profile using the connector profile arn. For example:

import {
  to = aws_appflow_connector_profile.profile
  id = "arn:aws:appflow:us-west-2:123456789012:connectorprofile/example-profile"
}

Using terraform import, import AppFlow Connector Profile using the connector profile arn. For example:

% terraform import aws_appflow_connector_profile.profile arn:aws:appflow:us-west-2:123456789012:connectorprofile/example-profile