Settings
aws-lite talks to AWS from this machine. Keys never leave the server process and are never shown in the browser.
How to authenticate
- Use an existing AWS CLI profile in
~/.aws/credentials. - Or set
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYin.env.local. - Restart the dev server after changing credentials.
IAM actions used
sts:GetCallerIdentityShow which account you are signed in asec2:DescribeInstancesList instancesec2:StartInstancesStart a stopped instanceec2:StopInstancesStop a running instanceec2:RebootInstancesReboot a running instanceec2:RunInstancesLaunch a new Windows instanceec2:DescribeImagesList Windows AMIsec2:DescribeSubnetsPick a subnet when launchingec2:DescribeSecurityGroupsPick a security group when launchingec2:CreateKeyPairCreate a key pair and download the PEMec2:DescribeKeyPairsList key pairsec2:DeleteKeyPairDelete a key pairec2:GetPasswordDataGet the Windows launch passwordec2:DescribeAddressesList Elastic IPsec2:AllocateAddressCreate a static Elastic IPec2:AssociateAddressAttach a static IP to an instanceec2:DisassociateAddressDetach a static IPec2:ReleaseAddressRelease an unused Elastic IPssm:SendCommandGenerate or set a Windows passwordssm:GetCommandInvocationRead the password-reset resultce:GetCostAndUsageMonth-to-date and daily spendce:GetCostForecastRest-of-month forecastbilling:GetCreditsCredits remaining
apployd-developer cannot attach this policy to itself. Run this from an admin user or root:
aws iam put-user-policy --user-name apployd-developer --policy-name AwsLiteCostsAndCredits --policy-document file://aws-lite-billing-policy.json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"sts:GetCallerIdentity",
"ec2:DescribeInstances",
"ec2:StartInstances",
"ec2:StopInstances",
"ec2:RebootInstances",
"ce:GetCostAndUsage",
"ce:GetCostForecast",
"billing:GetCredits"
],
"Resource": "*"
}
]
}