EC2 and AMI Fundamentals and Setup
Jamie Furlong ??
Combining technical expertise with strong communication skills, crafting impactful solutions and sharing ideas with clarity and creativity, while drawing inspiration from my global experiences.
?? Exploring AWS EC2 and AMI Basics! ??
Building on the knowledge I gained about Virtual Private Clouds (VPC) in my last post, I have deployed my first EC2 instance into the default VPC.
Here is a cleaned up version of the notes I took and process I went through to set up the EC2 instance and connect to it via an ssh key on Windows.
?? Amazon EC2 (Elastic Compute Cloud):
Amazon EC2 provides scalable computing capacity in the AWS Cloud. It allows you to launch virtual servers, known as instances, to run applications in a secure and reliable environment.
If you need to deploy and manage any type of compute, EC2 is the service for it.
An EC2 instance is basically a configurable OS with different sizes and capabilities such as advanced storage and GPU.
One of its key features is scalability, allowing you to quickly scale up or down the capabilities of the instance based on demand.
Another is flexibility as it offers a wide range of instance types optimized for different use cases.
It is also very cost-effective and the charge is divided into categories including CPU usage, memory consumption, storage and networking. While most of these charges can be stopped by simply turning off the instance, storage costs will still be incurred.
??? Amazon Machine Images (AMIs):
An AMI is a template that contains the software configuration (OS, application server, and applications) required to launch an EC2 instance. It also contains permissions to dictate who can communicate with the instance.
Amazon provides many templates providing ready-to-use settings for your instances. Third parties may also provide public AMIs such as Windows and Linux. You also have the ability to customize and create your own AMIs by saving the configuration of a customized instance.
Some of these AMIs are on the free-tier of AWS and can be easily played around with.
??? Setup Workflow:
领英推荐
They key pair has 2 parts- public and private. Once the keypair is created, the .pem file is downloaded and you can move this to a suitable directory. When you try to connect to the instance, you provide the private side of the keypair and AWS will recognize that it matches with the public half and allow you to connect.
?? Connecting to an EC2 Instance via SSH:
On macOS and Linux:
These commands can also be found by right-clicking on your instance, selecting connect and navigating to the SSH pane.
On Windows (using Command Prompt or PowerShell):
Windows is mostly the same except the chmod command will not work.
Instead, you have to right-click on the .pem file and go to properties -> security -> advanced -> disable inheritance.
Once here, you should remove all access apart from your own user.
Without doing this, the command prompt will complain that the permissions of the .pem are too open and should be restricted as multiple users may have access to it.
Once done, running step 4 in the MAC and Linux section above should work.
?? Conclusion
Understanding EC2 and AMIs is crucial for designing scalable and resilient architectures in the cloud. They provide the foundation for deploying and managing applications efficiently and securely.
I’ve taken good notes on these as I know it will be important for the exam, and very useful to understand for continued success in my job.
I know I will go into more depth on this later in the course. For now, if you have any tips or you spot any errors or gaps in what I've written, please drop them in the comments! ????
#AWS #CloudComputing #AWSEC2 #AWSAMI #SolutionsArchitect #LearningJourney #CloudArchitecture
Full Stack Web Developer @ FIVERR | Building Scalable Web Applications
8 个月Insightful!