Resource: aws_lightsail_bucket

Provides a lightsail bucket.

Example Usage

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

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 using the name attribute. For example:

import {
  to = aws_lightsail_bucket.test
  id = "example-bucket"
}

Using terraform import, import aws_lightsail_bucket using the name attribute. For example:

% terraform import aws_lightsail_bucket.test example-bucket