Provides a resource to manage AWS Data Exchange DataSets.
resource "aws_dataexchange_data_set" "example" {
asset_type = "S3_SNAPSHOT"
description = "example"
name = "example"
}
asset_type
- (Required) The type of asset that is added to a data set. Valid values are: S3_SNAPSHOT
, REDSHIFT_DATA_SHARE
, and API_GATEWAY_API
.description
- (Required) A description for the data set.name
- (Required) The name of the data set.tags
- (Optional) A map of tags to assign to the resource. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
id
- The Id of the data set.arn
- The Amazon Resource Name of this data set.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.In Terraform v1.5.0 and later, use an import
block to import DataExchange DataSets using their ARN. For example:
import {
to = aws_dataexchange_data_set.example
id = "arn:aws:dataexchange:us-west-2:123456789012:data-sets/4fa784c7-ccb4-4dbf-ba4f-02198320daa1"
}
Using terraform import
, import DataExchange DataSets using their ARN. For example:
% terraform import aws_dataexchange_data_set.example arn:aws:dataexchange:us-west-2:123456789012:data-sets/4fa784c7-ccb4-4dbf-ba4f-02198320daa1