1. Log In to the AWS Console
-
Open your web browser and go to https://us-east-1.console.aws.amazon.com/iam/home
-
Click Sign In to the Console.
-
Enter your AWS account credentials (Root user or IAM user with admin privileges)
2. Create the “LightsailFullAccess” Policy
-
In the AWS Management Console, go to the IAM service (type IAM into the search bar if you don’t see it right away).
-
In the left-hand menu, click Policies.
-
Click the Create policy button at the top.
-
Select a creation method: You can create your policy using either the Visual editor or JSON.
Using the Visual Editor (Optional)
-
Under Service, search for Lightsail and select it.
-
Under Actions, choose All Lightsail actions (or select the specific actions you need).
-
Under Resources, select All resources (or specify resources if you want to limit access).
-
Click Next to proceed.
Using JSON (Optional)
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"lightsail:*"
],
"Resource": "*"
}
]
}
-
Click Next to review the policy.
-
Enter a Name for your policy. In this case, LightsailFullAccess.
-
Enter an optional Description if you’d like.
-
Click Create policy.
3. Create an IAM user
-
Go to the IAM dashboard again.
-
In the left-hand menu, select Users.
-
Click Add users.
-
In the User name field, type: lightsail_flashpanel.
-
Click Next
4. Attach the “LightsailFullAccess” Policy to the User
-
On the Set permissions page, select Attach existing policies directly.
-
In the search bar, type: LightsailFullAccess (the policy you just created).
-
Check the box next to the policy.
-
Click Next: Tags. (Optionally, add tags if needed.)
-
Click Next: Review.
-
Review the details, then click Create user.
5. Generate an Access Key
After creating the user, you’ll need to manually generate an access key:
-
Return to the Users list in IAM.
-
Click on the lightsail_flashpanel user you just created.
-
Go to the Security credentials tab.
-
Scroll down to the Access keys section.
-
Click Create access key.
-
Copy or download the Access key ID and Secret access key and store them securely.
Important: You won’t be able to view the secret key again once you close the window.