Skip to content

Instantly share code, notes, and snippets.

@apotitech
Created March 30, 2024 22:44
Show Gist options
  • Save apotitech/6c1ac26ee528eacb7dbeae7635253058 to your computer and use it in GitHub Desktop.
Save apotitech/6c1ac26ee528eacb7dbeae7635253058 to your computer and use it in GitHub Desktop.
Deploying Django Application on AWS with Terraform ... table 1
Component Description
ECR Elastic Container Registry (ECR) is a fully-managed Docker container registry. It provides a secure, scalable, and reliable location to store Docker images.
Networking
- VPC Virtual Private Cloud (VPC) is a virtual network in AWS that provides isolated environment where resources can be launched.
- Public and Private Subnets Public and private subnets are subdivisions of the VPC that control the routing of traffic. Public subnets have access to the internet, while private subnets do not.
- Routing Tables Routing tables define the rules for routing network traffic within the VPC.
- Internet Gateway and NAT Gateway Internet Gateway allows resources within the VPC to access the internet, while NAT Gateway allows resources in private subnets to access the internet while blocking inbound traffic initiated from the internet.
Load Balancer
- Listener Load balancer listener is a process that checks for connection requests from clients and forwards those requests to the appropriate target group.
- Target Groups Target groups are used to route requests to one or more registered targets, such as EC2 instances, ECS tasks, or Lambda functions.
- Security Groups Security groups act as a virtual firewall for controlling inbound and outbound traffic for instances attached to the load balancer.
ECS
- Cluster ECS cluster is a logical grouping of container instances that runs container tasks and services.
- Task Definition Task definition is a blueprint that describes how a container should launch, including container image, CPU and memory requirements, networking configuration, and other parameters.
- Service ECS service enables you to run and maintain a specified number of instances of a task definition simultaneously in a cluster.
IAM Roles and Policies IAM roles and policies define the permissions and access control settings for resources within AWS services.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment