목록AWS/연습구축 (14)
스마트시대

네트워크 구성은 마친 것을 전제로 하고 있음 AWS ECS, ECR 구성 Dockerfile 구성 github action 으로 AWS ECR에 이미지 작성 AWS ECS, ECR 구성 1. Create an ECR repository to store your images. For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`. 2. Create an an ECS cluster ,ECS service and ECS task definition. 2-1. Create an an ECS cluster 클러스터 이름 입력하고 만들어 둔 VPC 선택 후 서브넷도 전부 선택해준다. Auto assign pu..

1. Seoul Region - S3 Bucket - CloudFront Distribution Connection * Select ticket-s3-web.s3.amazonaws.com, the created S3, and have to change S3 to ticket-s3-web.ap-northeast-2.amazonaws.com as Regional DNS Name by typing in manual. All settings are created with default values and applied. The purpose for Seoul Region - S3 Bucket - CloudFront Distribution Connection. In other words, it is for cac..

Connect to Seoul Region when approaching ticketing.pw. (Seoul Region is operating normally) I assumed Fail of Seoul Region, blocking all inbound rules of ELB security group. About 1 minute later, Route 53 Health Check detected an abnormality in the Seoul Region. When accessing ticketing.pw again, it is connected to the Virginia Region website by the Route 53 Failover policy.

1 Buying a domain - HOSTING.KR After purchasing a domain called ticketing.pw, register the record value of Route 53 as the name server of the purchased domain. 2 SSL certificate provisioning * The certificate must create only in Virginia (us-east-1). CloudFront only recognizes certificates created in Virginia (us-east-1) 3 Add a Route 53 Failover Default Zone Since CloudFront provides HTTPS serv..

1 Create MySQL DB created DB Options Value Standard storage capacity General Purpose SSD 20GB auto-scaling capacity Up to 1000 GB Multi-AZ deployments False (Free Tier Support X) Public Access False DB character set UTF-8 encoding If you modify the DB character set, but you cannot do Korean input, you could specify the UTF-8 encoding in the table. 2 Create MySQL DB - Read Replica Set up Read Rep..

Create ELB * Availability area: Public (In the official document, it said that it does not work if you designate it as Private) Option Value Purpose Border between backend system and Internet Security Group Ticket-ELB-SG Target Group Ticket-Seoul-TargetGroup

1. Django - S3 Bucket, DynamoDB Integration Procedure Integrate with S3 using boto3, Django storages module and connect with DynamoDB using boto3, Django-Dynamodb session. 2. Seoul Region - Create S3 Bucket Options Value Bucket versioning Enabled Block the public access True created bucket Seoul Region - Purpose of S3 Bucket Creation To keep the content of a website in one bucket for simultaneou..

1 Prepare to Deploy EC2 Instances Go to the EC2 instance and proceed with the following tasks. Install Python 3.7.9 version - Move Python virtual environment - Install Django 3.2.3 version. 2 Create a Private EC2 Instance For security reasons, create an EC2 instance in a private subnet to only access through the Bastion Host. Security group - WEB application: HTTP, SSH access allowed 3 Create an..

1. Establishment of Seoul Region Network Environment 1 Create VPC Create after setting VPC name and CIDR (IP band to use). 2 Create Subnet Create 2 Public Subnets and 2 Private Subnets in 2 Availability Zones. * Public Subnet settings to automatically allocate public IPs to EC2 instances created in the Public Subnet. 3 Create Internet Gateway(IGW) 4 Create NAT Gateway(NAT GW) * There is a NAT In..

1 Buying a domain - HOSTING.KR After purchasing a domain called ticketing.pw, register the record value of Route 53 as the name server of the purchased domain. 2 SSL certificate provisioning * The certificate must create only in Virginia (us-east-1). CloudFront only recognizes certificates created in Virginia (us-east-1) 3. Add a Route 53 Failover Default Zone Since CloudFront provides HTTPS ser..