Last active
December 10, 2017 17:19
-
-
Save li0nel/7a8fc21e80a3d2b14065ed7aa53f4d13 to your computer and use it in GitHub Desktop.
Create an EC2 key pair to be installed on your EC2 instances
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create the key pair and extract the private key from the JSON response | |
aws ec2 create-key-pair | |
--key-name=laravelaws | |
--query 'KeyMaterial' | |
--output text > laravelaws.pem | |
# Assign appropriate permissions to the key file for it to be usable | |
chmod 400 laravelaws.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment