Resource: aws_datasync_location_hdfs

Manages an HDFS Location within AWS DataSync.

Example Usage

resource "aws_datasync_location_hdfs" "example" {
  agent_arns          = [aws_datasync_agent.example.arn]
  authentication_type = "SIMPLE"
  simple_user         = "example"

  name_node {
    hostname = aws_instance.example.private_dns
    port     = 80
  }
}

Kerberos Authentication

resource "aws_datasync_location_hdfs" "example" {
  agent_arns          = [aws_datasync_agent.example.arn]
  authentication_type = "KERBEROS"

  name_node {
    hostname = aws_instance.example.private_dns
    port     = 80
  }

  kerberos_principal     = "user@example.com"
  kerberos_keytab_base64 = filebase64("user.keytab")
  kerberos_krb5_conf     = file("krb5.conf")
}

Argument Reference

This resource supports the following arguments:

name_node Argument Reference

qop_configuration Argument Reference

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_datasync_location_hdfs using the Amazon Resource Name (ARN). For example:

import {
  to = aws_datasync_location_hdfs.example
  id = "arn:aws:datasync:us-east-1:123456789012:location/loc-12345678901234567"
}

Using terraform import, import aws_datasync_location_hdfs using the Amazon Resource Name (ARN). For example:

% terraform import aws_datasync_location_hdfs.example arn:aws:datasync:us-east-1:123456789012:location/loc-12345678901234567