Resource: aws_s3_object_copy

Provides a resource for copying an S3 object.

Example Usage

resource "aws_s3_object_copy" "test" {
  bucket = "destination_bucket"
  key    = "destination_key"
  source = "source_bucket/source_key"

  grant {
    uri         = "http://acs.amazonaws.com/groups/global/AllUsers"
    type        = "Group"
    permissions = ["READ"]
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

grant

This configuration block has the following required arguments:

This configuration block has the following optional arguments (one of the three is required):

Attribute Reference

This resource exports the following attributes in addition to the arguments above: