전체 글
-
[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 볼륨에 기록함업데이트 되는 데이터가 있으면 새로운 스냅샷을 생성해서 최신 상태로 유지함소스 서버의..
-
[Ansible] Ansible을 이용해서 비밀번호 일괄 변경하기운영체제/Linux 2023. 8. 26. 23:56
우선 ec2를 두 대 띄우자- Ubuntu server -> target server- linux server -> ansible server 1. target server : ubuntu 들어가서 사용자 생성하기sudo adduser newusersu newuser 2. ansible server : linux 서버 들어가서 ansible 설치하기sudo amazon-linux-extras install ansible2ansible --version 3. host 등록하기대상 서버인 ubuntu 서버의 ip주소를 등록해준다key.pem은 인스턴스 생성할때 지정한 키파일이라서 따로 해당 경로에 키값을 저장해줘야한다.vi /etc/ansible/hosts[clients]43.201.51.116 ansi..
-
-
[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 엔드포인트에 ..
-
[DevOps] Code pipeline에 ECS 배포하기클라우드/DevOps 2023. 8. 6. 20:54
1. 배포할 이미지 생성- Docker를 이용해서 image로 만든다음 ECR에 push함- maven 프로젝트라, dockerfile 내에서 mvn package를 통해 프로젝트 빌드함- docker build -t home . -> docker push...- docker build를 하면 target 디렉토리 아래 jar파일이 떨어짐 (jar 파일 이름은 pom.xml에서 생성) - 이때 이 ecr에 권한을 추가해줘야함ecr:BatchCheckLayerAvailabilityecr:BatchGetImageecr:CompleteLayerUploadecr:GetDownloadUrlForLayerecr:InitiateLayerUploadecr:PutImageecr:UploadLayerPart2. code ..
-
[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..