Resource: aws_s3control_object_lambda_access_point

Provides a resource to manage an S3 Object Lambda Access Point. An Object Lambda access point is associated with exactly one standard access point and thus one Amazon S3 bucket.

Example Usage

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

resource "aws_s3_access_point" "example" {
  bucket = aws_s3_bucket.example.id
  name   = "example"
}

resource "aws_s3control_object_lambda_access_point" "example" {
  name = "example"

  configuration {
    supporting_access_point = aws_s3_access_point.example.arn

    transformation_configuration {
      actions = ["GetObject"]

      content_transformation {
        aws_lambda {
          function_arn = aws_lambda_function.example.arn
        }
      }
    }
  }
}

Argument Reference

This resource supports the following arguments:

Configuration

The configuration block supports the following:

Transformation Configuration

The transformation_configuration block supports the following:

Content Transformation

The content_transformation block supports the following:

AWS Lambda

The aws_lambda block supports the following:

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 Object Lambda Access Points using the account_id and name, separated by a colon (:). For example:

import {
  to = aws_s3control_object_lambda_access_point.example
  id = "123456789012:example"
}

Using terraform import, import Object Lambda Access Points using the account_id and name, separated by a colon (:). For example:

% terraform import aws_s3control_object_lambda_access_point.example 123456789012:example