클라우드/AWS
-
[RDS] MySQL 5.7 to 8.0 업그레이드 기록클라우드/AWS 2024. 7. 27. 15:59
기억이 휘발되기 전에 기록을 정리해본다 ㅎ 업그레이드 버전- 개발디비 : MySQL Community 5.7 -> 8.0- 운영 디비 : Aurora MySQL 5.7 -> 8.0 업그레이드 순서1. 개발 디비, 운영 디비 시스템 스냅샷으로 미러링 방식으로 똑같이 복원2. 미러링 디비로 테스트 진행 3. 개발 디비 업그레이드 진행 (근무시간)4. 운영 디비 업그레이드 진행 (주말 새벽시간) 크게 이 순서로 업그레이드 진행을 했다.RDS Extended Support 비용을 막기 위해 8.0 버전으로 올려야 했기 때문에 업그레이드를 진행했던것이었고, 중간에 장애도 나기도 했지만.. 결론적으로는 잘 마무리 됐다. (다음은 EKS 인데..깔깔) 1) 개발 DB- 개발 디비는 크게 문제가 없었다. 1. 문제..
-
[AWS] AWS IoT Greengrass V2 Workshop 2클라우드/AWS 2023. 12. 5. 23:15
1에서는 component의 로컬 배포를 만드는 과정이었고, 이제는 component의 특정 버전에 만족하면 현장에서 디바이스에 배포할 구성 요소를 준비하는 과정에 대한 실습 -> 즉 클라우드에 배포하는 실습임!! AWS Cloud에서 component를 배포하려면 먼저 recipe 파일을 확장해 S3의 component artifact를 참조한 다음 component artifact를 S3로 업로드 해야한다. 배포가 구성되면 디바이스가 S3에서 아티팩트를 다운로드 한다. 즉, 1. recipe 파일 확장(s3의 artifact를 참조하는 방법으로 지정) 2. component artifact를 s3로 업로드 3. 배포 구성 완료 후 디바이스가 s3에서 아티팩트를 다운로드 하게 함 S3 버킷 생성하기 레..
-
[AWS] IoT Greengrass V2 Workshop 1클라우드/AWS 2023. 12. 5. 22:38
https://catalog.us-east-1.prod.workshops.aws/workshops/5ecc2416-f956-4273-b729-d0d30556013f/en-US/chapter1-introduction/30-workshop-environment AWS IoT Greengrass V2 - Workshop (New) AWS IoT Greengrass v2 is an Internet of Things (IoT) open source edge runtime and cloud service that helps you build, deploy, and manage device software. You can learn basic knowledge to use AWS IoT Greengrass V2 th..
-
[AWS] MGN를 이용하여 마이그레이션클라우드/AWS 2023. 12. 4. 23:27
죽지도 않고 다시 찾아온 MGN포스팅하다가 그만뒀었는데... 이번주에 쓸 일이 있어서 다시한번 정리하는 겸 올려본다MGN (AWS Application Migration Service)- 애플리케이션 단의 마이그레이션을 가장 효율적이고 안전하게 클라우드로 마이그레이션- 자동화된 리프트 앤 시프트 솔루션- 어떠한 변화도 없이 애플리케이션을 마이그레이션- Replication Agent 소스 서버에 Replication Agent를 설치해서 MGN에 요청 보냄MGN 엔드포인트와 443번 포트로 통신함 - StagingReplication instance를 생성해서 소스 서버의 데이터를 복제하고, 데이터를 EBS 볼륨에 기록함업데이트 되는 데이터가 있으면 새로운 스냅샷을 생성해서 최신 상태로 유지함소스 서버의..
-
-
[AWS] EC2 Instance Connect 환경 구축하고 private instance에 연결하기클라우드/AWS 2023. 8. 9. 19:34
- ec2 instance connect는 새로나온 서비스 - 기존의 bastion host를 통해서 private instance에 접근하자 얺고 엔드포인트를 통해 접근하는 방식임 - 기본적으로 private subnet에 엔드포인트를 생성해두면, 테스트서버에서 ssh 연결하면 엔드포인트로 접속하게됨 - 돈이 별로 나오지 않아서 앞으로 많이 쓰이게 될 것 ! 1. VPC/Subnet 구성 VPC와 EIC를 배치할 서브넷과 접속해볼 인스턴스를 생성할 서브넷 두개의 서브넷이 필요함 2. EC2 instance connect endpoint 생성 Private subnet에 생성하자, 보안그룹으로는 ssh에 대해서만 열어주었음 3. private 서브넷에 있는 인스턴스 생성 - 보안그룹 EIC 엔드포인트에 ..
-
[AWS] Window에 Cloudwatch Agent 설치클라우드/AWS 2023. 7. 12. 22:07
그라파나에서 액세스랑 비밀키를 연동해두면 기본적으로 여러 cloudwatch 지표 정보들을 불러옴 하지만 memory , disk 정보들은 연동할 수 없음 -> Cloudwatch Agent를 설치하면 됨 다시는 까먹지 않으리라... 1. 파워쉘에서 CloudwatchAgent 설치 파일 다운로드 Invoke-WebRequest https://s3.amazonaws.com/amazoncloudwatch-agent/windows/amd64/latest/amazon-cloudwatch-agent.msi -OutFile C:amazon-cloudwatch-agent.msi 2. 해당 디렉토리로 이동 msiexec /i amazon-cloudwatch-agent.msi 3. agent 실행 확인 명령어 & $E..
-
[AWS] Grafana를 이용하여 EC2 모니터링클라우드/AWS 2023. 7. 1. 17:47
1. EC2에 ubuntu 20.04설치 2. EC2에 Grafana 설치 # adduser, libfontconfg1 설치 sudo apt-get install -y adduser libfontconfig1 # grafana 다운로드 wget https://dl.grafana.com/oss/release/grafana_7.5.2_amd64.deb # grafana 설치 sudo dpkg -i grafana_7.5.2_amd64.deb # 실행 sudo service grafana-server start # 실행 상태 확인 sudo service grafana-server status 3. EC2 보안그룹에 3000번 포트 추가 4. url에 ec2 퍼블릭 ip:3000 - ubuntu에 그라파나 설치하..