Resource: aws_datasync_location_object_storage

Manages a Object Storage Location within AWS DataSync.

Example Usage

resource "aws_datasync_location_object_storage" "example" {
  agent_arns      = [aws_datasync_agent.example.arn]
  server_hostname = "example"
  bucket_name     = "example"
}

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

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

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

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