Quick Start¶
This guide takes you from zero to a live cloud infrastructure pane on a web page. You will link a cloud account, create an access key, and embed a pane that displays real data from your cloud environment.
Time required: Under 30 minutes.
What you need:
- A LightPane account (create one free)
- An AWS account, GCP project, or Azure subscription you want to discover
- A web page where you want to display the data (any HTML page will do)
Step 1: Link Your Cloud Account¶
LightPane uses read-only access to discover your cloud resources. It never modifies, creates, or deletes anything in your environment.
Deploy the LightPane CloudFormation template in your AWS account. This creates a
read-only IAM role using the AWS managed SecurityAudit policy.
- Log in to app.lightpane.io
- Go to Cloud Accounts
- Click Link AWS Account
- Follow the instructions to deploy the CloudFormation template
- Paste the Role ARN back into LightPane
The template creates a role with an External ID that prevents confused deputy attacks. LightPane generates this ID — you don't need to create one.
Connect via Workload Identity Federation (WIF). This is the Google-recommended approach for cross-project access without service account keys.
- Log in to app.lightpane.io
- Go to Cloud Accounts
- Click Link GCP Project
- Follow the instructions to configure WIF in your project
Connect using a Service Principal with the Reader role.
- Log in to app.lightpane.io
- Go to Cloud Accounts
- Click Link Azure Subscription
- Follow the instructions to create the Service Principal
For detailed instructions, see Link Your Cloud Account.
Step 2: Create an Access Key¶
Access keys control what cloud data can be accessed and from where. You need one to embed panes or call the API.
- Go to Access Keys in your LightPane account
- Click Create New Key
- Choose:
- Label: A name you'll recognise (e.g., "My status page")
- Type:
embedfor web pages,api_keyfor scripts - Cloud account: Select the account you linked in Step 1
- Expiry: Choose a duration
- Click Create
- Copy the token immediately — it is shown once and cannot be retrieved again
For detailed instructions and constraint options, see Create an Access Key.
Step 3: Embed a Pane¶
Add these lines to any HTML page:
<!-- 1. Your access key — once per page -->
<script>
window.lpEmbed = { accessKey: 'YOUR_ACCESS_KEY_HERE' };
</script>
<!-- 2. The loader — once per page -->
<script src="https://lightpane.io/embed/lp.js"></script>
<!-- 3. One container per pane -->
<div data-lp-service="ec2"
data-lp-account="YOUR_ACCOUNT_HANDLE"
data-lp-region="eu-west-2"
data-lp-attributes="name,instance_id,instance_type,state,private_ip"></div>
Replace YOUR_ACCESS_KEY_HERE with the token from Step 2, and
YOUR_ACCOUNT_HANDLE with the handle shown against your cloud account in the
console. Open the page in a browser; you should see a table of EC2 instances
from your AWS account.
Three things that fail quietly
- The key's allowed origin is matched exactly. A key scoped to
https://example.comwill not work onhttps://www.example.com, nor with a trailing slash. This is the most common cause of "it worked locally". data-lp-attributesis a comma-separated string, not a list.- Do not add
<script>tags for individual panes.lp.jsfinds the containers on the page and loads what they need, with the right cache token. A hand-written pane URL pins that page to one build.
For detailed instructions, see Embed Your First Pane.
What Next¶
- Add more services: See the Service Catalogue for all supported services and attributes
- Build a status page: Follow the Incident Management guide
- Use the REST API directly: See the API Reference
- Connect Excel: Follow the Excel & Power Query guide