AWS Practical — 1

AWS Practical — 1

Alright, let’s move from theory to practical!

We’ve discussed the breadth of AWS capabilities, and now it’s time to get our hands on cloud.

For those of you who are already eager, I trust you’ve already taken advantage of AWS’s generous free tier. If not, don’t worry, you can always set up an account and explore the platform.

In this part we’ll be covering

  1. Configuring your EC2 instance
  2. Setting up a VPC (Virtual Private Cloud)
  3. Creating an S3 bucket
  4. Setting up RDS (Relational Database Service)

A) Setting up your EC2 instance

  1. Go to AWS Console and log in with your credentials. At the top of the console, there’s a search bar. Type “EC2.” EC2 stands for “Elastic Compute Cloud,” which is AWS’s service for providing virtual servers. This will take you to the main EC2 page, where you can manage your virtual servers. Click “Launch Instance”, this button starts the process of creating a new virtual server.

2. Give your instance a descriptive name, like “MyFirstServer,” so you can easily identify it later. We’ll use “Amazon Linux,” which is a Linux distribution provided by AWS. It’s a popular choice for its stability and compatibility with AWS services. The instance type determines the hardware configuration of your virtual server, such as CPU, memory, and network performance.

3. A key pair is used to securely connect to your instance. It consists of a public key (stored by AWS) and a private key (that you keep). If you have not already created a key pair, you will be prompted to create one, or you can proceed without one for this exercise, but you will not be able to connect to the instance without one.

4. And your instance is ready!

B) Setting up a VPC (Virtual Private Cloud)

A VPC is like renting your own private stall within that marketplace.

The AWS Cloud is like a shared lab space. You and other students have access to various resources.

A VPC is like creating your own isolated workspace within that lab.

You get your own dedicated area where you can set up your project’s components without interfering with other groups’ work. You can decide how your project is organized: where to store your code, where to run your simulations, and how to connect your different parts. You can control who has access to your workspace, preventing accidental changes or data leaks. The CIDR block is the size of your workspace.

  • Why is this important?
  • Organization: You can keep your project files and resources organized and separate from others.
  • Control: You can experiment and test your code without worrying about breaking anything in the shared lab.
  • Security: You can protect your project data and prevent unauthorized access.

Creating the VPC is like reserving your own workspace.

  1. Begin by logging into your AWS Management Console. Once logged in, use the search bar to locate and navigate to the “VPC” service.

2. Within the VPC dashboard, click the “Create VPC” button. You’ll be prompted to provide a descriptive “Name tag” for your new VPC.

And you will get a pop up of “You sucessfully created a VPC!

C) Creating an S3 bucket

An S3 bucket is a fundamental storage container in AWS’s Simple Storage Service (S3). It’s essentially a globally unique, flat namespace where you store “objects” (files and their metadata). S3 provides highly scalable, durable, and secure object storage, essential for various applications like data backups, media storage, and static website hosting.

  1. Log into the AWS Management Console and go to the S3 service. Then, click “Create bucket” to begin the process.

2. Provide a globally unique name for your bucket and select the AWS Region where you want it to reside. The name must be unique across all existing S3 buckets.

3. Adjust settings to enhance security and data integrity, including:

  • “Block all public access” to restrict unauthorized access.
  • “Enable versioning” to keep a history of object changes.
  • “Enable server-side encryption” to protect data at rest.

4. Review your settings and click “Create bucket” to provision your new S3 bucket.

5. After creation, you can upload files or folders (objects) to your bucket. This allows you to store and retrieve data within your S3 environment.

D) Setting up RDS (Relational Database Service)

Amazon RDS is like having a database administrator on demand. It lets you easily set up, manage, and scale relational databases (like MySQL, PostgreSQL, or SQL Server) in the cloud. You don’t have to worry about the underlying hardware or operating system, allowing you to focus on your application.

  1. Log into the AWS Management Console and search for “RDS.” Click “Create database” to begin. Make sure you are using an IAM user with least privilege access, and not the root user. Enable Multi-Factor Authentication (MFA) on your AWS account.

2. Select the “Standard create” method for more control. Choose your desired database engine (e.g., MySQL, PostgreSQL). Choose the latest stable version of your database engine to benefit from the latest security patches.

3. Provide a unique database instance identifier.

  • Configure database credentials, instance size, and storage. Use a strong, unique password for the database administrator account. For the network configuration, place your RDS instance in a private subnet within your VPC, and only allow access from your application servers’ security groups.
  • Disable Public access.
  • Enable storage encryption.
  • Enable automatic backups.

4. Now click on “Create Database”.

Building Your Own Architecture

Now that you’ve learned how to set up these core AWS services individually, the real power comes from connecting them to create a cohesive architecture. Before our next part, design and implement a simple architecture that incorporates all four services we’ve covered.

Stay curious, keep building, and remember: in the cloud, you can always tear down and rebuild your infrastructure to learn from your mistakes!

要查看或添加评论,请登录

Aastha Thakker的更多文章

  • SOC: Human, Automation & AI Teaming to Beat Alert?Fatigue

    SOC: Human, Automation & AI Teaming to Beat Alert?Fatigue

    You’re stuck in a digital panic room. Every notification is a mini-heart attack.

  • MANETs: How Devices Create Their Own Social Networks

    MANETs: How Devices Create Their Own Social Networks

    In an era where our homes are getting smarter and our devices are increasingly interconnected, there’s a pressing…

    2 条评论
  • Satellite Hacking: Space?Wars

    Satellite Hacking: Space?Wars

    Hey there! How are you able to read this post? Is it the internet? Of course! But what’s the backbone of this…

    1 条评论
  • Digital Forensics and Anti-forensics

    Digital Forensics and Anti-forensics

    Hey Everyone! Just like our previous dive into purple teaming, this blog lays the groundwork for understanding both…

    2 条评论
  • Gen AI vs. Agentic AI

    Gen AI vs. Agentic AI

    Hey Everyone! Another AI blog post! (I can hear your eyes rolling from here.) But wait — before you close this tab…

    7 条评论
  • Purple Teaming: Turning Frenemies into Allies

    Purple Teaming: Turning Frenemies into Allies

    Remember Tom and Jerry? Those two were the ultimate frenemies. When they were fighting, they’d wreck the entire house.

    6 条评论
  • Cloud Computing with AWS: Basics

    Cloud Computing with AWS: Basics

    Hey Everyone! Remember our last blog about cloud computing? You know, where we learned about all those cool benefits…

    4 条评论
  • Neuromorphic Computing Fundamentals

    Neuromorphic Computing Fundamentals

    Hey everyone! Today, we are going to learn something super interesting: Neurocomputing! Let’s start by understanding it…

    3 条评论
  • Can AI be the New Sherlock Holmes of Cybersecurity?

    Can AI be the New Sherlock Holmes of Cybersecurity?

    Malware — fascinating yet scary word! It’s like a cockroach, no matter how many times you try to get rid of it, it…

    2 条评论
  • Secure by Default: Adding Security in every?stage.

    Secure by Default: Adding Security in every?stage.

    You’ve survived holiday shopping, and endless deadlines, and somehow managed to order way too much food. It’s the end…

    2 条评论