DevOps & Cloud Engineering(234)
-
git 기초 사용법
- 개요 WSL에서 Bash Level로 Git을 다룰 때 필요한 초기 세팅 방법 - 설정 방법 ## git user git config --global --replace-all user.name "" ## git e-mail git config --global --replace-all user.email "" ## git auth git config --global credential.helper store ## git config list git config -l ## change branch git checkout main ## pull git pull ## create branch & check out git checkout -b feature/ ## apply all changes git add..
2022.12.16 -
bitbucket git password
- 개요 bitbucket에 google 로그인으로 연동시 git password 사용 하는 방법 - 방법 app password로 password 발급하여 사용 - 상세 방법 Select the Settings cog in the upper-right corner of the top navigation bar. Under Personal settings, select Personal Bitbucket settings. On the left sidebar, select App passwords. Select Create app password. Give the App password a name, usually related to the application that will use the passwor..
2022.12.16 -
slack rss app 추가
- 개요 Slack 채널에 양질의 RSS Feed를 추가하여 최선 정보 및 트렌드를 빠르게 전달 받는 방법 - slack 채널 생성 후 RSS app 추가 https://slack.com/intl/ko-kr/help/articles/218688467-Slack%EC%97%90-RSS-%ED%94%BC%EB%93%9C-%EC%B6%94%EA%B0%80 - feed 관리 # 피드리스트 /feed list # 피드 구독추가 /feed subscribe # 피드 구독 취소 /feed remove - 추천 피드 Google Search Status Dashboard Updates URL: https://status.search.google.com/en/feed.atom MSRC Security Update Gui..
2022.12.15 -
파일에서 aws access key와 secret key 추출
- 개요 credentials 파일이나 특정 파일에서 aws access key 또는 aws secret key 추출 하는 방법 - 방법 (access key 추출) cat ~/.aws/credentials | grep aws_access_key_id | awk '{print $3}' cat ~/.aws/credentials | grep aws_access_key_id | awk -F = '{print $2}' | tr -d ' ' grep -RP '(?
2022.12.14 -
gradle boot jar default name
- 개요 build.gradle에서 boot.jar 설정을 제거후 codebuild에서 build 할 경우 - 결과 .jar 가 아닌 src.jar로 생성 - reference https://jar-download.com/artifacts/junit/junit/3.8.1/source-code/build.xml
2022.12.14 -
athena create table error
- 개요 athena create table할때 아래와 같은 에러가 날 경우 - 에러 메세지 line 1:8: mismatched input 'EXTERNAL'. Expecting: 'MATERIALIZED', 'OR', 'ROLE', 'SCHEMA', 'TABLE', 'VIEW' - 해결 방법 table name에 - 이 포함된 경우이므로 - 을 _ 로 변경후 create table을 run 하면 된다.
2022.12.12 -
ubuntu package update
- 개요 ubuntu에서 패키지 업데이트 준비 밎 진행하는 방법 - 상세 설명 ## 업데이트 대상 목록 업데이트 apt-get update ## 업데이트 대상 목록 확인 apt list --upgradable ## 업데이트 대상중 선택해서 업데이트 apt --only-upgrade install ## 업데이트 대상 전체 업데이트 apt upgrade
2022.12.12 -
ELB Target이 전부 unhealthy할 경우 traffic 전달됨.
- 개요 ELB Target이 전부 unhealthy할 경우 traffic 전달됨. - 관련 문서 If a target group contains only unhealthy registered targets, the load balancer routes requests to all those targets, regardless of their health status. This means that if all targets fail health checks at the same time in all enabled Availability Zones, the load balancer fails open. The effect of the fail-open is to allow traffic to all tar..
2022.12.09 -
tg_attr_deg_delay.sh
- 개요 target group을 생성하면 default deregistration delay timeout이 300초 이므로, 줄여서 사용하는 것을 추천한다. 기본적으로 TG가 300초 동안 기다렸다가 deregistration이 되어서 비용이 많이 발생하므로 특별한 이슈가 없다면 30초까지 줄이는 것을 추천한다. 기 존재하는 TG의 timeout 값을 확인하는 스크립트는 아래와 같다. - 스크립트 #!/bin/bash echo "ELB attributes" for i in $(aws elbv2 describe-target-groups --query TargetGroups[].TargetGroupArn --output text) do echo $i aws elbv2 describe-target-grou..
2022.12.07 -
elb_attr_delete_protection.sh
- 개요 AWS 리소스는 최초 생성시 대부분 삭제 방지 기능이 꺼져있는데, 삭제 방지 기능을 켜놓으면 실수로 삭제를 하게 될 경우를 미연에 방지할 수 있는 좋은 기능이다. 기 존재하는 ELB의 삭제 방지 기능을 확인하는 스크립트는 아래와 같다. 리스트 부분만 바꾸면 다른 리소스도 확인이 가능하다. - 스크립트 #!/bin/bash echo "ELB attributes" for i in $(aws elbv2 describe-load-balancers --query LoadBalancers[].LoadBalancerArn[] --output text) do echo $i aws elbv2 describe-load-balancer-attributes --load-balancer-arn $i --query 'A..
2022.12.07