---
# System prepended metadata

title: 20210511 Devops class

---

# 20210511 Devops class

## 질문

### AWS제공 EC2 AMI 에는 대부분  deploy 용 Agent 가 설치되어 있을까요 아니면 별도로 설치해 주어야 할까요??
- 별도 설치합니다. [설치 안내](https://docs.aws.amazon.com/ko_kr/codedeploy/latest/userguide/codedeploy-agent-operations-install-cli.html)
- 제가 쓰는 서버에 설치된 것은 제가 설치한게 맞는가봅니다...제 EC2 고인물..


### DB(RDS)의 경우 VPC 외부에서 접근하면 OUTBOUND  비용이 발생될텐데.. 람다가 ENI 를 통해 접속시도 OUTBOUND 비용이 발생될까요??

#### RDS & EC2 data transfer pricing
[Transfer pricing](https://aws.amazon.com/ko/rds/mysql/pricing/?nc1=h_ls)


1. Data transferred between Amazon RDS and Amazon EC2 Instances in the same Availability Zone is free.
    - ***같은 AZ 안 & RDS - EC2: free***
1. Amazon RDS DB Instances inside VPC: For data transferred between an Amazon EC2 instance and Amazon RDS DB Instance in different Availability Zones of the same Region, Amazon EC2 Regional Data Transfer charges apply on both sides of transfer.
    - ***같은 VPC의 RDS & EC2가 통신하는데 다른 AZ인 경우***
            ***- 둘 다 발생***

1. Data transferred between Availability Zones for replication of Multi-AZ deployments is free.
    - ***multi-az 복제 : free***

1. Amazon RDS DB Instances outside VPC: For data transferred between an Amazon EC2 instance and Amazon RDS DB Instance in different Availability Zones of the same Region, there is no Data Transfer charge for traffic in or out of the Amazon RDS DB Instance. You are only charged for the Data Transfer in or out of the Amazon EC2 instance, and standard Amazon EC2 Regional Data Transfer charges apply ($.01 per GB in/out).
    - 다른 VPC의 RDS & EC2가 통신할 때 
        - 가용영역이 같으면
            - RDS data transfer 비용 free
            - EC2 instance transfer 비용 발생



### Task Placement Strategy 관련해서 binpack 으로 하는게 성능/비용 상 가장 효율적이라면, 별다른 고민없이 binpack을 선택하면 되나요? 그럼에도 불구하고 random, spread 선택하는 케이스는 뭐가 있을까요?

- https://aws.amazon.com/ko/blogs/compute/amazon-ecs-task-placement/#:~:text=Binpack%20places%20tasks%20on%20as,zone%20attribute%20to%20place%20tasks.



## 참고 자료

- 서버리스 및 컨테이너 배포 툴
https://aws.amazon.com/ko/proton/
#### Workshop
- [ECS workshop](https://ecsworkshop.com/)
- [EKS workshop](https://eksworkshop.com/)

### Code Series
- [jenkins setup with aws tools](https://aws.amazon.com/ko/blogs/devops/setting-up-a-ci-cd-pipeline-by-integrating-jenkins-with-aws-codebuild-and-aws-codedeploy/)

### policy simulator
- 