Connect an AWS Account
A cloud account is the trust relationship that lets LakeSail create and manage infrastructure in an AWS account you control. LakeSail assumes a scoped IAM role when it needs to act; it does not store an AWS access key or secret key.
This guide covers the standalone connection flow. For the complete first-time path from signup through a running cluster, see the Quickstart.
Prerequisites
- A LakeSail role with permission to add cloud accounts. The standard organization Owner and Member roles include this permission.
- An AWS account where you can deploy a CloudFormation stack and create IAM roles. We recommend an account dedicated to LakeSail.
Before approving the connection, your security team can review the trust model and permissions or inspect the complete AWS IAM policy reference.
Use a dedicated AWS account
We recommend connecting LakeSail to an AWS account that runs nothing else. This is standard AWS practice for any external vendor that deploys into your environment, not a LakeSail requirement.
A dedicated account gives you:
- Isolation. LakeSail's role can already touch only resources it creates. An account boundary adds a hard limit: nothing in the account can reach your other accounts unless you grant it.
- Clear costs. Every AWS charge in the account comes from LakeSail infrastructure.
- Separate quotas. AWS service quotas apply per account, so LakeSail clusters do not compete with your other workloads for EC2 capacity.
- Simpler audit. CloudTrail in the account shows only LakeSail activity and your administration of it.
- Clean offboarding. If you stop using LakeSail, you can close the account without affecting anything else.
Create the account in AWS Organizations, or with Control Tower Account Factory if you use Control Tower. Organization policies apply to the new account, and three common kinds block LakeSail:
- Region restrictions, such as the Control Tower Region deny control. Allow the region you plan to run LakeSail in.
- IAM restrictions on who can create IAM roles, or which permissions boundary a role needs. The CloudFormation stack creates IAM roles, and LakeSail creates more for your clusters.
- Data perimeter policies that allow only principals in your organization to assume roles. LakeSail assumes its role from its own AWS account, so it needs an exception.
Your data does not need to move. Clusters in the dedicated account can read and write S3 buckets in your other accounts through external data targets. A Glue Data Catalog in another account works too: set that account's ID as the catalog's AWS Catalog ID, and grant the LakeSail workload role access in that account. See Connect a Catalog.
Connect the account
- In LakeSail, open Settings → Cloud Accounts and click Add Account.
- Confirm that you are signed in to the target AWS account.
- Click Create Stack on AWS.
- In AWS CloudFormation, review the pre-filled stack and create it. Keep the pre-filled connection parameters unchanged; they bind the role to this LakeSail connection.
- Wait for CloudFormation to finish creating the stack. LakeSail verifies the connection automatically. You can close the LakeSail modal while CloudFormation runs and return later.
- When the modal reports AWS account connected, optionally enter an Account alias to make the account easier to identify.
- Click Save & Setup Network to continue to network creation, or Save & Close to return to the account list.
The account moves Pending → Verifying → Active. Once it is Active, LakeSail can create networks and managed infrastructure in it.
Deploy the template manually
Use the manual path when your organization requires CloudFormation changes to go through a CLI, an IaC pipeline, or a separate AWS operator.
- Follow steps 1 through 3 above to create the Pending LakeSail connection.
- Return to the Add AWS Account modal, expand Advanced, and click Download Template.
- Apply the downloaded template through the AWS Console,
aws cloudformation deploy, or your IaC tool. Keep its connection-specific parameters unchanged. - Wait for CloudFormation to finish creating the stack, then copy the role ARN from its Outputs tab.
- Back in LakeSail, expand Advanced, paste the ARN into IAM Role ARN, and click Verify Manually.
- After verification succeeds, set an account alias if needed and save the connection.
The downloaded template and the one-click stack create the same IAM resources. The template is the source of truth; the AWS IAM Reference reproduces its policies for review.
Connection states
| Status | Meaning |
|---|---|
| Pending | The connection record exists, but its CloudFormation stack has not been verified |
| Verifying | LakeSail is checking the role and trust relationship |
| Active | The role was verified and the account can be used |
| Failed | The last verification or connection operation failed; open Check Connection to retry |
| Disconnected | The CloudFormation stack or role was removed, so LakeSail cannot access the account |
| Deleted | The connection record was removed from the organization |
For a Failed account, confirm that CloudFormation created its stack successfully, then use Check Connection from the account row. For a Disconnected account, restore the stack and use Reconnect this account. Reuse the existing connection rather than creating a second one, so its networks and clusters remain attached to the correct account record.
See Troubleshooting for verification failures and broken trust relationships.
Rotate or revoke access
- Rotate or repair: redeploy the CloudFormation stack with the same connection parameters, then check the connection again in LakeSail.
- Revoke: turn off the stack's termination protection (Stack actions → Edit termination protection), then delete the CloudFormation stack. LakeSail can no longer assume the role, and the cloud account shows as Disconnected. Destroy networks and clusters first: if you revoke while they exist, they stay in your account for you to remove, and the stack delete needs a retry with Force delete. See Security & IAM.
- Delete the cloud account in LakeSail: this removes only LakeSail's record. The CloudFormation stack, and the role that gives LakeSail access, stay in your AWS account until you delete the stack as above.
Destroy LakeSail-managed infrastructure before permanently removing a working account. Networks, clusters, and provisioned catalogs must be removed from the leaves upward while LakeSail can still reach AWS. See Security & IAM for the trust implications.
API reference
- Cloud accounts: create, verify, describe, update, and delete connections; download and synchronize CloudFormation templates.
- Networks: the next infrastructure layer inside a connected account.