Profile Applicability:
Level 1
Description:
AWS Lightsail allows users to create instances that can be attached to storage buckets. Ensuring that Lightsail instances are attached to the appropriate buckets is essential for managing and storing data. By configuring the instances correctly, you ensure that data is available for the applications running on these instances.
Rationale:
Attaching Lightsail instances to buckets ensures that:
Data is properly stored and accessible by the instances.
Proper management of storage resources for the Lightsail instances.
Simplified backup, security, and resource management.
Default Value:
By default, Lightsail instances are not automatically attached to any buckets. The user must configure them to attach instances to the required buckets.
Impact:
Pros:
Improved data management and access control.
Simplified backup and recovery of data associated with instances.
Cons:
Misconfiguration could lead to data being inaccessible or improperly managed.
Requires careful monitoring to ensure that the correct instances are linked to the appropriate buckets.
Remediation:
Test Plan:
Using AWS Console:
Log in to the AWS Console at AWS Console.
Navigate to Lightsail under Compute.
Go to the Instances tab and select the Lightsail instance you want to attach to a bucket.
Click on the Networking tab to configure network settings.
Ensure that the correct bucket is selected in the Attach Storage section.
Attach the required bucket to the instance.
Using AWS CLI:
Run the following command to list all available Lightsail instances:
aws lightsail get-instances
Identify the instance to which you want to attach a bucket.
Run the following command to attach the storage bucket to the selected instance:
aws lightsail attach-disk --disk-name <disk-name> --instance-name <instance-name>
Implementation Plan:
Using AWS Console:
Log in to the AWS Console at AWS Console.
Navigate to Lightsail and review the available instances and buckets.
Select the instance that needs to be attached to a bucket.
Attach the required bucket to the instance.
Using AWS CLI:
List the available instances and disks using the following commands:
aws lightsail get-instances aws lightsail get-disks
Attach the required disk to the instance using the attach-disk command:
aws lightsail attach-disk --disk-name <disk-name> --instance-name <instance-name>
Backout Plan:
Using AWS Console:
If the wrong instance is attached to a bucket, log in to the AWS Console.
Navigate to Lightsail and go to the Instances section.
Detach the incorrect bucket and reattach the correct one.
Using AWS CLI:
Detach the incorrect disk using the following command:
aws lightsail detach-disk --disk-name <incorrect-disk-name> --instance-name <instance-name>
Attach the correct disk using the appropriate command:
aws lightsail attach-disk --disk-name <correct-disk-name> --instance-name <instance-name>
References:
CIS Controls: