View AWS CloudFormation stacks for Lightsail instances
Amazon Lightsail uses AWS CloudFormation to create Amazon Elastic Compute Cloud (Amazon EC2) instances from exported snapshots. A CloudFormation stack is created when you request to create an Amazon EC2 instance using the Lightsail console or Lightsail API. The stack performs a series of actions in your Amazon Web Services (AWS) account to create all of the related resources for the instance, such as the Amazon EC2 instance from an Amazon Machine Image (AMI), the Elastic Block Store (EBS) system volume from an EBS snapshot, and the security group for the instance. To learn more about AWS CloudFormation stacks, see Working with Stacks in the AWS CloudFormation documentation.
You can access the AWS CloudFormation stacks through the Lightsail console or in the AWS CloudFormation console. This guide shows you how to access both.
Note
The AWS CloudFormation stack used to create your Amazon EC2 resources is permanently linked to your Amazon EC2 resources. If you delete the stack, then all related resources are automatically deleted. Because of this, you should not delete any of the AWS CloudFormation stacks created by Lightsail, and instead delete your Amazon EC2 resources using the EC2 console.
Accessing the AWS CloudFormation stacks through the Lightsail console
After you choose to create an instance in Amazon EC2 using the Lightsail console or the Lightsail API, an AWS CloudFormation stack is created and its status is tracked in the Exports section of the Lightsail console.. To learn more about Exports, see Track snapshot export status in Lightsail.
To view your AWS CloudFormation stacks in the Lightsail console
-
Sign in to the Lightsail console
. -
Choose Exports in the left navigation pane.
-
To access a CloudFormation stack for a previously created Amazon EC2 instance, choose View details for a task labeled with Created EC2 resources.
-
The confirmation page that appears lists the CloudFormation stack for the task. Choose the stack name to open the stack details in the AWS CloudFormation console.
Accessing the stacks in the AWS CloudFormation console
You can also access your stack details through the AWS CloudFormation console
Stacks with a CREATE_IN_PROGRESS status are in the process of creating Amazon EC2 resources from your exported Lightsail snapshots. Stacks with a CREATE_COMPLETED status have completed the process of creating Amazon EC2 resources. To view the resources created by a stack, choose the checkbox next to the stack name, and then choose the Resources tab.