AWS Fundamentals Logo
AWS Fundamentals
AWS::Lightsail::Bucket

Lightsail Bucket

Resource Type definition for AWS::Lightsail::Bucket

Properties

7 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
BucketName
string
RequiredCreate-only
BundleId
string
Required
AccessRules
AccessRules
ObjectVersioning
boolean
ReadOnlyAccessAccounts
Array<string>
ResourcesReceivingAccess
Array<string>
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
AbleToUpdateBundlebooleanIndicates whether the bundle that is currently applied to a bucket can be changed to another bundle. You can update a bucket's bundle only one time within a monthly AWS billing cycle.
BucketArnstring-
UrlstringThe URL of the bucket.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Lightsail::Bucket

Resources:
  MyResource:
    Type: AWS::Lightsail::Bucket
    Properties:
      BucketName: "my-bucketname"
      BundleId: "my-bundleid"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

lightsail:CreateBucketlightsail:GetBucketslightsail:GetInstancelightsail:UpdateBucketlightsail:UpdateBucketBundlelightsail:SetResourceAccessForBucketlightsail:TagResourcelightsail:UntagResource

read

lightsail:GetBuckets

delete

lightsail:DeleteBucketlightsail:GetBuckets

list

lightsail:GetBuckets

update

lightsail:GetBucketslightsail:GetInstancelightsail:UpdateBucketlightsail:UpdateBucketBundlelightsail:SetResourceAccessForBucketlightsail:TagResourcelightsail:UntagResource

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceLightsail
Properties10
Required2
TaggingSupported
Primary IDBucketName

Supported Operations

CreateReadDeleteListUpdate

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

BucketName

External Links