Creating AWS Access Keys
Creating AWS Access Keys
Section titled “Creating AWS Access Keys”In order to self-host, you will first need to generate AWS Access keys for your account.
Prerequisites
Section titled “Prerequisites”- AWS account
- Administrator access to AWS Console
Step 1: Sign in to AWS
Section titled “Step 1: Sign in to AWS”- Go to AWS Console.
- Sign in with your AWS credentials.
Step 2: Create a Custom Policy
Section titled “Step 2: Create a Custom Policy”-
Go to IAM (search for “IAM” in the top bar).
-
Click Policies in the left menu.
-
Click Create policy.
-
Select the JSON tab.
-
Paste the following policy:
{"Version": "2012-10-17","Statement": [{"Sid": "VisualEditor0","Effect": "Allow","Action": ["ec2:DetachVolume","ec2:AttachVolume","ec2:DeleteVolume","ec2:DescribeInstances","ec2:DeleteTags","ec2:StartInstances","ec2:CreateTags","ec2:StopInstances","ec2:CreateVolume"],"Resource": "*"}]} -
Click Next twice.
-
Name your policy (e.g., “EC2VolumeManager”).
-
Click Create policy.
Step 3: Create an IAM User
Section titled “Step 3: Create an IAM User”- Go to Users in the left IAM menu.
- Click Add users.
- Enter a username (e.g., “ec2-volume-user”).
- Check Access key - Programmatic access.
- Click Next: Permissions.
Step 4: Attach the Policy
Section titled “Step 4: Attach the Policy”- Select Attach existing policies directly.
- Search for the policy you just created.
- Check the box next to it.
- Click Next twice.
- Click Create user.
Step 5: Save Your Access Keys
Section titled “Step 5: Save Your Access Keys”- IMPORTANT: You’ll only see the Secret Access Key ONCE.
- Download the CSV file or copy both keys somewhere secure.
- Access Key ID looks like:
AKIAIOSFXXXXXXXXAMPLE - Secret Access Key looks like:
wJaasdfslfslfsFEMI/K7MDENG/XXX
That’s it! You now have access keys with permissions to manage EC2 volumes and instances.