Resource: aws_lightsail_bucket_access_key

Provides a lightsail bucket access key. This is a set of credentials that allow API requests to be made to the lightsail bucket.

Example Usage

resource "aws_lightsail_bucket" "test" {
  name      = "mytestbucket"
  bundle_id = "small_1_0"
}

resource "aws_lightsail_bucket_access_key_access_key" "test" {
  bucket_name = aws_lightsail_bucket_access_key.test.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 aws_lightsail_bucket_access_key using the id attribute. For example:

import {
  to = aws_lightsail_bucket_access_key.test
  id = "example-bucket,AKIAIOSFODNN7EXAMPLE"
}

Using terraform import, import aws_lightsail_bucket_access_key using the id attribute. For example:

% terraform import aws_lightsail_bucket_access_key.test example-bucket,AKIAIOSFODNN7EXAMPLE