![]() # example: # ssh -o StrictHostKe圜hecking=no mkdir /home/ec2-user/app RDS $ ssh -o StrictHostKe圜hecking =no mkdir /home/ec2-user/app SSH into the instance using your Key Pair like so: With the instance up and running, we can now install Docker on it. Then, on the main instances page, grab the public IP of your newly created instance: On the "Launch Status" page, click "View Instances". Be sure to set the proper permissions as well - i.e., chmod 400 ~/.ssh/django.pem.Ĭlick "Launch Instances" to create the new instance. pem file to the "/Users/$USER/.ssh" directory. On a Mac or a Linux box? It's recommended to save the. On the modal, create a new Key Pair so you can connect to the instance over SSH. Create a new Security Group (akin to a firewall) called django-security-group, making sure at least HTTP 80 and SSH 22 are open. We'll stick with the default VPC to keep things simple for this tutorial, but feel free to update this.Ĭlick the "Next" button a few more times until you're on the "Configure Security Group" step. Next, stick with the basic Amazon Linux AMI with the t2.micro Instance Type:Ĭlick "Next: Configure Instance Details". Then, click the "Launch Instance" button: Log in to the AWS Console, navigate to the EC2 Console and click "Instances" on the left sidebar. For more info, review Lock Away Your AWS Account Root User Access Keys and Creating a Billing Alarm, respectively. It's a good idea to create a non-root IAM user, with "Administrator Access" and "Billing" policies, and a Billing Alert via CloudWatch to alert you if your AWS usage costs exceed a certain amount. Let's start by setting up an EC2 instance to deploy our application to along with configuring RDS.įirst, you'll need to sign up for an AWS account (if you don't already have one). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |