Skip to content

Instantly share code, notes, and snippets.

@alan-cugler
Created August 6, 2018 14:16
Show Gist options
  • Save alan-cugler/3dff6ef1f9608ea69a6b449f1f9df285 to your computer and use it in GitHub Desktop.
Save alan-cugler/3dff6ef1f9608ea69a6b449f1f9df285 to your computer and use it in GitHub Desktop.
AWS commands
aws ec2 describe-instances
#
aws ec2 start-instances --instance-ids i-1348636c
#
aws sns publish --topic-arn arn:aws:sns:us-east-1:546419318123:OperationsError --message "Script Failure"
#
aws sqs receive-message --queue-url https://queue.amazonaws.com/546419318123/Test
#
aws autoscaling create-auto-scaling-group help
#
aws configure
# For signing in a user
pip install module-name -t /path/to/project-dir
# installs package into that directory
aws lambda create-function --generate-cli-skeleton > lambda_setup.json
# creates a template json file for making a lambda function
aws rds create-db-instance --generate-cli-skeleton
# Creates a template jdon file for making a DB instance
aws cloudformation create-stack-instances --generate-cli-skeleton
# Creates cloud front instance setup
aws apigateway create-rest-api --name test-api
# creates new gateway
aws ec2 run-instances --cli-input-json file://ec2runinst.json
aws cloudformation validate-template --template-body file:./lambda_setup.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment