AWS Three-Tier Architecture Setup

📥 Clone the GitHub Repository

To begin, clone the GitHub repository that contains the necessary code:

git clone https://github.com/Naveen3251/AWS_3Tier.git

Architecture

Image description

☁️ S3 Bucket Creation

  1. Navigate to the S3 service in the AWS Management Console.
  2. Click on Create Bucket.
  3. Enter a unique Bucket Name.
  4. Select the AWS Region where you will be deploying the architecture.
  5. Keep the default settings and click Create Bucket. Image description Image description This bucket will be used to store and manage the application code.

🔑 IAM Role for EC2 Instances

  1. Open the IAM service in the AWS Management Console.
  2. Navigate to Roles and click Create Role.
  3. Choose EC2 as the Trusted Entity.
  4. Click Next: Permissions and attach the following AWS Managed Policies:
    • AmazonSSMManagedInstanceCore → Allows secure connection through AWS Systems Manager Session Manager.
    • AmazonS3ReadOnlyAccess → Grants EC2 instances permission to read from S3.
  5. Click Next, provide a suitable Role Name, and then click Create Role. Image description Image description Image description Image description

This role allows EC2 instances to securely access S3 and connect via AWS Systems Manager without needing SSH keys.


✅ Conclusion

You have successfully set up the initial components for the AWS Three-Tier Architecture. In the next part, we will proceed with further configurations and deployments.

✅ Continue to Part 2 🚀

🔗 Read Part 2: AWS Three-Tier Architecture - Next Steps