Home How To How to Create an AWS Lightsail Full Access Key

How to Create an AWS Lightsail Full Access Key

Last updated on Dec 21, 2024

1. Log In to the AWS Console

  1. Open your web browser and go to https://us-east-1.console.aws.amazon.com/iam/home

  2. Click Sign In to the Console.

  3. Enter your AWS account credentials (Root user or IAM user with admin privileges)

2. Create the “LightsailFullAccess” Policy

  1. In the AWS Management Console, go to the IAM service (type IAM into the search bar if you don’t see it right away).

  2. In the left-hand menu, click Policies.

  3. Click the Create policy button at the top.

  4. Select a creation method: You can create your policy using either the Visual editor or JSON.

Using the Visual Editor (Optional)

  1. Under Service, search for Lightsail and select it.

  2. Under Actions, choose All Lightsail actions (or select the specific actions you need).

  3. Under Resources, select All resources (or specify resources if you want to limit access).

  4. Click Next to proceed.

Using JSON (Optional)

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "lightsail:*"
            ],
            "Resource": "*"
        }
    ]
}
  1. Click Next to review the policy.

  2. Enter a Name for your policy. In this case, LightsailFullAccess.

  3. Enter an optional Description if you’d like.

  4. Click Create policy.

3. Create an IAM user

  1. Go to the IAM dashboard again.

  2. In the left-hand menu, select Users.

  3. Click Add users.

  4. In the User name field, type: lightsail_flashpanel.

  5. Click Next

4. Attach the “LightsailFullAccess” Policy to the User

  1. On the Set permissions page, select Attach existing policies directly.

  2. In the search bar, type: LightsailFullAccess (the policy you just created).

  3. Check the box next to the policy.

  4. Click Next: Tags. (Optionally, add tags if needed.)

  5. Click Next: Review.

  6. 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:

  1. Return to the Users list in IAM.

  2. Click on the lightsail_flashpanel user you just created.

  3. Go to the Security credentials tab.

  4. Scroll down to the Access keys section.

  5. Click Create access key.

  6. 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.