AWS(154)
-
EC2 추가 disk mount
- 개요 EC2는 Disk를 늘리는 것도 가능하지만 EBS disk를 추가로 붙혀서 mount 하는 방법도 가능하다. - 디스크 추가 후 Mount 하는 방법 ##### [ec2-user@127.0.0.1 ~]# file -s /dev/nvme1n1 /dev/nvme1n1: data [ec2-user@127.0.0.1 ~]# file -s /dev/nvme0n1 /dev/nvme0n1: x86 boot sector; partition 1: ID=0xee, starthead 0, startsector 1, 209715199 sectors, extended partition table (last)\011, code offset 0x63 ##### [ec2-user@127.0.0.1 ~]# lsblk -f N..
2022.10.11 -
aws cli error (An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials)
- 개요 AWS CLI는 파일 변조 및 정합성을 위해 서버 시간과 서버 타임존이 AWS Config에 설정된 값과 일치 하지 않으면 에러가 발생한다. - 에러 메세지 An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials - 해결 (WSL, ubuntu) ## chrony apt -y install chrony systemctl start chrony systemctl enable chrony ## hwclock hwclock -s echo hwclock -s >> .bashrc ## ntpdate apt inst..
2022.10.06 -
AWS invoice 발행 시점 및 환율
- 개요 AWS는 서비스 차원으로 운영하게 되면 서비스 사용량에 따라 큰 금액이 청구될 수 있다. 또한, 금액이 클 경우 환율에 따른 편차도 상당하다. AWS가 Invoice를 발행하는 시점에 따른 환율에 대해 간단히 알아 봤다. - 환율 적용 시점 - 한 달 요금 인보이스 환율 적용 시점 다음 달 초 2~3일 경에 발행되며 인보이스 발행되는 일의 기준 환율로 적용된다. - RI, Saving Plan 요금 인보이스 환율 적용 시점 구매와 동시에 인보이스 발행 및 카드 결제 진행되며, 당일의 환율로 적용된다. - 비고 하루중 환율도 현찰 파실 때, 사실 때, 송금 보내실 때, 받으실 때 제 각각이지만 특정짓기에는 애매하다.
2022.10.04 -
bastion host를 이용한 SSH tunneling
- 개요 bastion host를 이용한 SSH tunneling 을 통해 RDS나 private subnet에 위치한 AWS resource 접속 방법 - 터널링 방법 ## ssh -i -f -N -L :: @ ## ssh -i ~/.ssh/pem.pem -N -L 3306:rds.amazonaws.com:3306 -L 27017:docdb.amazonaws.com:27017 @ -v - 접속 방법 mysql -h 127.0.0.1 -P -u -p - 참고 https://aws.amazon.com/premiumsupport/knowledge-center/rds-connect-using-bastion-host-linux/
2022.09.21 -
AWS console Sign In default region 설정 하는 법
- 개요 AWS console Sign In default region 설정 하는 법 - 방법 오른쪽 상단 account 메뉴 >> Settings >> Localization and default Region >> Default Region >> ap-northeast-2 - 비고 그러나 잘 안되는 경우도 있다.
2022.09.16 -
RDS Snapshot을 통해 restore를 할 경우 multi-az 변경 불가
- 개요 snapshot을 통해 restore 할 경우 multi-az deployment type을 multi >> single은 가능 하지만 single >> multi는 불가능하다
2022.09.06 -
ECR Docker hub official image
- 개요 Docker Hub의 rate limiting 이슈로 ECR Public을 사용하는 경우 Official Image의 부재 - ECR에서 Official Image 제공 https://gallery.ecr.aws/docker?page=1 https://aws.amazon.com/blogs/containers/docker-official-images-now-available-on-amazon-elastic-container-registry-public/
2022.08.24 -
Athena - No output location provided. An output location is required either through the Workgroup result configuration setting or as an API input.
- 개요 Athena를 처음 사용할 때 아래와 같은 에러가 발생하는 경우가 있다. - 에러 메세지 No output location provided. An output location is required either through the Workgroup result configuration setting or as an API input. - 해결 방법 Amazon Athena -> Settings -> Query result location -> S3 추가
2022.08.24 -
특정 리전에 특정 인스턴스 가용한 영역 확인
- 개요 EC2 인스턴스가 특정 가용 영역에서 사용이 불가능하거나 여유가 없는 경우가 있다. 아래는 특정 인스턴스가 특정 리전의 특정 가용역에서 사용가능한지 확인해주는 스크립트이다. - 예제 region : ap-northeast-2 instance type : c5-large - 스크립트 aws ec2 describe-instance-type-offerings --location-type availability-zone --filters Name=instance-type,Values=c5.xlarge --region ap-northeast-2 --output table - 결과 $ aws ec2 describe-instance-type-offerings --location-type availabilit..
2022.08.22 -
AWS Study & Best Practice
- 개요 AWS 공부 및 Best Practice 확인할 수 있는 정말 유용한 사이트 - 참고 https://www.trendmicro.com/cloudoneconformity/knowledge-base/aws/
2022.08.22