Resource: aws_s3outposts_endpoint

Provides a resource to manage an S3 Outposts Endpoint.

Example Usage

resource "aws_s3outposts_endpoint" "example" {
  outpost_id        = data.aws_outposts_outpost.example.id
  security_group_id = aws_security_group.example.id
  subnet_id         = aws_subnet.example.id
}

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 S3 Outposts Endpoints using Amazon Resource Name (ARN), EC2 Security Group identifier, and EC2 Subnet identifier, separated by commas (,). For example:

import {
  to = aws_s3outposts_endpoint.example
  id = "arn:aws:s3-outposts:us-east-1:123456789012:outpost/op-12345678/endpoint/0123456789abcdef,sg-12345678,subnet-12345678"
}

Using terraform import, import S3 Outposts Endpoints using Amazon Resource Name (ARN), EC2 Security Group identifier, and EC2 Subnet identifier, separated by commas (,). For example:

% terraform import aws_s3outposts_endpoint.example arn:aws:s3-outposts:us-east-1:123456789012:outpost/op-12345678/endpoint/0123456789abcdef,sg-12345678,subnet-12345678