# Ensure That Your Lightsail Buckets Are Not Publicly Accessible (Manual)

- Source: https://support.icompaas.com/support/solutions/articles/62000234145-ensure-that-your-lightsail-buckets-are-not-publicly-accessible-manual-
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [CIS AWS Compute Services Benchmark v1.1.0](https://support.icompaas.com/support/solutions/62000112682) › [AWS Compute Services Benchmark v1.1.0](https://support.icompaas.com/support/solutions/folders/62000169228)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

### **Profile Applicability:**

Level 1  

### **Description:**

AWS Lightsail allows users to create storage buckets, which may contain sensitive data. It's essential to ensure that these buckets are not publicly accessible, preventing unauthorized access to data stored in Lightsail buckets. Ensuring the correct access control settings can help maintain the security of the data and prevent potential data breaches.

### **Rationale:**

Preventing public access to Lightsail buckets ensures that:

-   Sensitive data stored in buckets is not exposed to unauthorized parties.  
    
-   Data privacy and security are maintained by enforcing proper access controls.  
    
-   Compliance with industry regulations and internal security policies is achieved.  
    

### **Default Value:**

By default, Lightsail buckets may be publicly accessible if the appropriate access control settings are not configured. It is important to manually verify and enforce restrictive access policies.

**Impact:**

-   **Pros:**  
    
    -   Improved security by ensuring that sensitive data is not publicly exposed.  
        
    -   Enhanced compliance with data protection regulations and internal security policies.  
        
-   **Cons:**  
    
    -   Incorrect configurations may lead to service disruptions or unintentional access restrictions.
        

### **Remediation:**

**Test Plan:**

**Using AWS Console:**

1.  Log in to the AWS Console at [AWS Console](https://console.aws.amazon.com/).  
    
2.  Navigate to Lightsail under Storage.  
    
3.  Go to Buckets and select the bucket you want to configure.  
    
4.  Click on the Permissions tab and verify the bucket’s access control settings.  
    
5.  Ensure that Public Access is disabled. If it’s enabled, modify the access control settings to restrict public access.  
    
6.  Save the changes and confirm that the bucket is no longer publicly accessible.  
    

**Using AWS CLI:**

1.  Run the following command to check the access control settings of the Lightsail bucket:  
    
    aws lightsail get-bucket-access --bucket-name <bucket-name>
    
2.  If the bucket is publicly accessible, run the following command to restrict public access:  
    
    aws lightsail update-bucket-access --bucket-name <bucket-name> --access-type Restricted
    

**Implementation Plan:**

**Using AWS Console:**

1.  Log in to the AWS Console at [AWS Console](https://console.aws.amazon.com/).  
    
2.  Navigate to Lightsail and select Buckets under Storage.  
    
3.  Review the access control settings of the bucket.  
    
4.  Disable Public Access by configuring the appropriate settings in the Permissions tab.  
    
5.  Confirm that the bucket is no longer publicly accessible.  
    

**Using AWS CLI:**

1.  Check the bucket’s current access settings using the following command:  
    
    aws lightsail get-bucket-access --bucket-name <bucket-name>
    
2.  If the bucket is accessible publicly, restrict access by running the following command:  
    
    aws lightsail update-bucket-access --bucket-name <bucket-name> --access-type Restricted
    

**Backout Plan:**

**Using AWS Console:**

1.  If the bucket is accidentally restricted, log in to the AWS Console at [AWS Console](https://console.aws.amazon.com/).  
    
2.  Navigate to Lightsail and select Buckets under Storage.  
    
3.  Select the affected bucket and review the Permissions tab.  
    
4.  If necessary, re-enable public access (though this is not recommended for sensitive data).  
    

**Using AWS CLI:**

1.  If the bucket was mistakenly restricted, run the following command to modify access:  
    
    aws lightsail update-bucket-access --bucket-name <bucket-name> --access-type Public
    

**References:**

-   [AWS CLI: get-bucket-access  
    ](https://docs.aws.amazon.com/cli/latest/reference/lightsail/get-bucket-access.html)
    
-   [AWS CLI: update-bucket-access  
    ](https://docs.aws.amazon.com/cli/latest/reference/lightsail/update-bucket-access.html)
    
-   [AWS Lightsail Documentation  
    ](https://docs.aws.amazon.com/lightsail/latest/userguide/)
    

**CIS Controls:**

<table style="border:none;border-collapse:collapse;font-size:14px"><colgroup style="font-family:&quot;Helvetica Neue&quot;"><col style="font-family:&quot;Helvetica Neue&quot;"><col style="font-family:&quot;Helvetica Neue&quot;"><col style="font-family:&quot;Helvetica Neue&quot;"></colgroup><tbody><tr style="height:39.25pt;font-family:&quot;Helvetica Neue&quot;"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-size:14px;font-family:&quot;Helvetica Neue&quot;"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-size:14px;font-family:&quot;Helvetica Neue&quot;"><span style="font-family:Helvetica Neue"><span style="font-size:14px;font-family:&quot;Helvetica Neue&quot;"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">Version</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-size:14px;font-family:&quot;Helvetica Neue&quot;"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-size:14px;font-family:&quot;Helvetica Neue&quot;"><span style="font-family:Helvetica Neue"><span style="font-size:14px;font-family:&quot;Helvetica Neue&quot;"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">Control ID</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-size:14px;font-family:&quot;Helvetica Neue&quot;"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-size:14px;font-family:&quot;Helvetica Neue&quot;"><span style="font-family:Helvetica Neue"><span style="font-size:14px;font-family:&quot;Helvetica Neue&quot;"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">Control Description</span></span></span></p></td></tr><tr style="height:39.25pt;font-family:&quot;Helvetica Neue&quot;"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-size:14px;font-family:&quot;Helvetica Neue&quot;"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-size:14px;font-family:&quot;Helvetica Neue&quot;"><span style="font-family:Helvetica Neue"><span style="font-size:14px;font-family:&quot;Helvetica Neue&quot;"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">v8</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-size:14px;font-family:&quot;Helvetica Neue&quot;"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-size:14px;font-family:&quot;Helvetica Neue&quot;"><span style="font-family:Helvetica Neue"><span style="font-size:14px;font-family:&quot;Helvetica Neue&quot;"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">3.4</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-size:14px;font-family:&quot;Helvetica Neue&quot;"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-size:14px;font-family:&quot;Helvetica Neue&quot;"><span style="font-family:Helvetica Neue"><span style="font-size:14px;font-family:&quot;Helvetica Neue&quot;"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">Ensure that Lightsail buckets are not publicly accessible to prevent unauthorized data access.</span></span></span></p></td></tr><tr style="height:39.25pt"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-size:14px;font-family:&quot;Helvetica Neue&quot;"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-size:14px;font-family:&quot;Helvetica Neue&quot;"><span style="font-family:Helvetica Neue"><span style="font-size:14px;font-family:&quot;Helvetica Neue&quot;"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">v7</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-size:14px;font-family:&quot;Helvetica Neue&quot;"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-size:14px;font-family:&quot;Helvetica Neue&quot;"><span style="font-family:Helvetica Neue"><span style="font-size:14px;font-family:&quot;Helvetica Neue&quot;"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">14.2</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-size:14px"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-size:14px"><span style="font-family:Helvetica Neue"><span style="font-size:14px"><span style="color:rgb(0, 0, 0)">Implement access controls to protect data stored in Lightsail buckets from being exposed publicly.</span></span></span></p></td></tr></tbody></table>

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
