DevOps & Cloud Engineering(231)
-
CloudFront Route53 HTTPS DNS record 지원
개요CloudFront alias로 Route53에서 HTTPS DNS record를 지원 (2025년 7월 1일)https://aws.amazon.com/ko/blogs/networking-and-content-delivery/boost-application-performance-amazon-cloudfront-enables-https-record/ 장점DNS 쿼리 비용 절감DNS RTT 절감HTTPS 바로 시작 적용방법1. CloudFront HTTP/2, HTTP/3 enable2. Route53 a record alias CloudFront 생성3. Route53 HTTPS record alias CloudFront 생성 확인방법### MAC 기본 유틸 dig# dig -vDiG 9.10.6# d..
2025.07.03 -
Cloudfront Lambda Egde Funtion의 CloudWatch LogGroup
1. 사용하지 않고 Disable 되어 있는 리전에는 CloudWatch LogGroup이 안 생기는가? - Disable 된 리전에는 CloudWatch LogGroup이 생성되지 않음. - 이는 Disable 가능한 리전에는 REC(Regional Edge Cache) 가 없기 때문. - Lambda@Edge는 엣지 로케이션에서 가장 가까운 REC가 있는 리전에서 실행되며, 해당 리전에 로그 그룹이 생성. - 참고로 REC가 있는 리전은 Disable이 불가능한 리전이기 때문에, 실제 로그가 생성되는 리전은 항상 활성화.2. 그 외 활성화된 리전은 전부 Retention 을 1days로 적용해서 로그 관리 및 비용 관리중입니다. 그러면 근본적으로 Lambda Edge의 Loggroup을 생기지 않게 ..
2025.06.18 -
error "could be both a local file and a tracking branch."
개요git checkout을 하는 과정에서 github actions이나 git cli를 사용할 때 아래와 같은 에러가 발생하는 경우상황could be both a local file and a tracking branch.원인'git checkout'을 통해 branch를 변경할 경우 명시적인 명령어 'git switch' 를 추천한다참고https://git-scm.com/docs/git-switch
2025.03.07 -
gov-ncloud Cloud DB for PostgreSQL 데이터베이스 생성 하는 방법
개요어떤 철학과 무슨 의도를 갖고 만든 건지는 모르겠지만, gov-ncloud Cloud DB for PostgreSQL에서 최초 생성된 database 말고 추가적으로 database를 생성하는 방법은 정말 찾기 힘들었다. 방법아래와 같이 DB Service 상세보기를 누르면 나온다. 스크린샷
2025.02.26 -
PostgreSQL dump & restore
개요PostgreSQL dump & restore 관련 명령어 dump & restore# sudo dnf install -y https://download.postgresql.org/pub/repos/yum/14/redhat/rhel-8-x86_64/postgresql14-14.13-1PGDG.rhel8.x86_64.rpm# psql -h -p 5432 -U user -d Password for user user: psql (14.13, server 13.15)Type "help" for help.database=> \l List of databases Name | Owner | Encoding | Coll..
2025.02.26 -
Rocky Linux 8에 PostgreSQL client 설치 및 삭제 방법
개요Rocky Linux 8에 PostgreSQL client 설치 방법 설치 및 삭제 방법## PostreSQL Repository 추가# sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm## 설치하려는 버전의 PostreSQL Module 활성화# sudo dnf module enable postgresql:12## 설치# sudo dnf install -y postgresql## 삭제# sudo dnf remove postgresql# sudo dnf module reset postgresql## 다른 버전 Module 활성화# s..
2025.02.26 -
MySQL Dump, Restore 관련 필요한 명령어
개요MySQL을 운영할 때 필요한 작업중에는 MySQL dump 및 restore 작업이 있다. 이에 관련된 명령어를 정리해봤다. 명령어## mysql database create 확인show create database ;## mysql table create 확인show create table ;## mysql schema dump 명령어 예시mysqldump -u -h -p \ --no-data --skip-comments \ --skip-set-charset \ --skip-add-drop-table \ --skip-add-locks \ --skip-disable-keys \ --skip-triggers \ --skip-routines \ --set-gtid-purged=OF..
2025.02.26 -
object storage object url (ncloud, AWS)
개요Amazon S3와 Naver Cloud Platform(NCP) Object Storage는 객체에 접근하기 위한 두 가지 URL 형식을 제공Path-Style과 Virtual Host-Style URL 형식• Amazon S3:Path-Style URL: https://s3.{region}.amazonaws.com/{bucket-name}/{object-key} Virtual Host-Style URL: https://{bucket-name}.s3.{region}.amazonaws.com/{object-key}• Naver Cloud Platform Object Storage:Path-Style URL: https://{region}.object.ncloudstorage.com/{bucket-na..
2025.02.17 -
AWS CloudWatch Logs insights query
개요AWS CloudWatch Logs insights query를 잘 사용하면 AWS CloudWatch Logs를 잘 사용할 수 있다. 쿼리1 >> 10초 이상 RDS slow queryfields @timestamp, @message| filter @message like /Query_time:/| parse @message /Query_time: (?\d+\.\d+)/| filter queryTime > 10| sort @timestamp desc| limit 20 비고적절히 만들어진 Query는 Saved queries를 통해 저장 해 놓으면 한번에 불러와서 사용 가능하다.
2025.02.12 -
AWS Web Console account 다중 로그인
개요AWS Web Console에서 account를 1개 이상 사용할 경우 브라우저를 다르게 하거나 시크릿 모드를 통해서 해야하는 불편함이 있었는데, 최근에 다중 로그인이 기능이 출시되면서 상당히 편해지고 좋아졌습니다. (2025년 1월 16일) 방법AWS Console을 로그인 한 후 우 상단의 Account의 드롭박스에서 "Turn on multi-session support"를 활성화한 후 Session 추가를 통해 1개 이상의 Account가 다중으로 로그인된 후 Switching을 통해 관리가 가능하다. 참고https://aws.amazon.com/ko/about-aws/whats-new/2025/01/aws-management-console-simultaneous-sign-in-multiple..
2025.01.21