본문 바로가기

728x90

퍼블릭 클라우드

[aws] Linux에서 .ppk 파일을 .pem 파일로 변환 Linux에서 .ppk 파일을 .pem 파일로 변환 redhat 계열(CentOS) sudo yum install -y putty debian 계열(ubuntu) sudo apt-get install -y putty-tools Unix 또는 Linux - .pem 파일을 .ppk 파일로 변환 sudo puttygen pemKey.pem -o ppkKey.ppk -O private Unix 또는 Linux - .ppk 파일을 .pem 파일로 변환 sudo puttygen ppkkey.ppk -O private-openssh -o pemkey.pem 참고URL - 프라이빗 키(.pem/.ppk) 변환 : https://aws.amazon.com/ko/premiumsupport/knowledge-center/.. 더보기
[aws] EC2 인스턴스 상태 모니터링(상태 변경 이벤트) EC2 인스턴스 상태 모니터링(상태 변경 이벤트) 아키텍처 다이어그램(architecture diagram) 사전 작업 AWS CloudTrail 구성 AWS Chatbot 구성 CloudWatch 이벤트 > 규칙 > Amazone EventBridge 규칙 세부 정보 정의 - 이름 : EC2_Instance_State-change_Notification - 설명 : 이벤트 패턴 작성 - 이벤트 소스 : AWS 서비스 - AWS 서비스 : EC2 - 이벤트 유형 : EC2 Instance State-change Notification 대상 선택 - 대상 선택 : SNS 주제 - 주제 : slack-sns 태그 구성 - 선태 사항 Slack 알람 예) 참고URL - https://docs.aws.amazo.. 더보기
[aws] AWS Console Login 시 Slack 알람 AWS Console Login 시 Slack 알람 CloudWatch CloudWatch > Events > Rules - 서비스 이름 : AWS Console Sign-in - 이벤트 유형 : Sign-in Events Slack 알람 더보기
[aws] AWS Chatbot과 Slack을 연동하여 알람 받기 AWS Chatbot과 Slack을 연동하여 알람 받기 아키텍처 다이어그램(architecture diagram) 1. Slack - 채널 생성 2. Amazon SNS - 주제 생성 3. AWS Chatbot - 워크스페이스 및 채널 생성 4. CloudWatch - 경보 상태 설정 5. Slack 알람 확인 --- Slack 채널 생성 > awschatbot slack 워크스페이스 URL - xworkspacex.slack.com 확인 ** 미리 웹브라우저에서 슬랙(워크스페이스)에 로그인이 되어 있으면 워크스페이스 URL을 물어보는 과정이 생략됩니다. Amazon SNS(Amazon Simple Notification Service) sns 생성 대시보드 > 주제 > 주제 생성 AWS Chatbot .. 더보기
[aws] AWS CodePipeline AWS CodePipeline AWS CodePipeline은 빠르고 안정적인 애플리케이션 및 인프라 업데이트를 위해 릴리스 파이프라인을 자동화하는 데 도움이 되는 완전관리형 지속적 전달 서비스입니다. AWS CodeCommit AWS CodeBuild 더보기
[aws] AWS 명명 규칙(AWS Naming Convention) AWS 명명 규칙(AWS Naming Convention) 규칙 설명 [sitecode]-[region]-[environment]-[resource_type]-[sequence_number] - sitecode : 사이트 이름 또는 서비스 이름 - region : aws 리전(seoul|virginia|tokyo|singapore) - environment(env) : dev/test/stage/prod - resource_type : 리소스 타입(vpc|subnet|ec2|sg|alb|nlb|rt|rtb) - sequence_number : 일련 번호 리소스 타입 이름 예제 비고 VPC mocha-seoul-prod-vpc-101 서브넷 mocha-vpc-101-sb-01 인터넷 게이트웨이 mocha-.. 더보기
[aws] cloudfront 파일 무효화 aws cloudfront 파일 무효화 create-invalidation : 무효화 만들기 aws cloudfront create-invalidation --distribution-id EDFDVBD6EXAMPLE --paths "/example-path/example-file2.png" $ aws cloudfront create-invalidation --distribution-id EDFDVBD6EXAMPLE --paths "/asiaartistawards/css/aaa_style.css" { "Invalidation": { "Status": "InProgress", "InvalidationBatch": { "Paths": { "Items": [ "/example-path/example-file2... 더보기
[aws] ubuntu에 ssm agent 설치하기 ubuntu에 ssm agent 설치하기 mkdir /tmp/ssm cd /tmp/ssm wget https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/debian_amd64/amazon-ssm-agent.deb sudo dpkg -i amazon-ssm-agent.deb $ dpkg -i amazon-ssm-agent.deb Selecting previously unselected package amazon-ssm-agent. (Reading database ... 63640 files and directories currently installed.) Preparing to unpack amazon-ssm-agent.deb ... Prepar.. 더보기

728x90