본문 바로가기

퍼블릭 클라우드

AWS Billing(Budgets) 알람을 설정하는 방법 AWS Billing(Budgets) 알람을 설정하는 방법 AWS Budgets는 AWS 비용 및 사용량을 모니터링하고 관리하는 서비스로, 특정 비용 또는 사용량이 지정한 임계값을 초과할 때 알람을 받을 수 있습니다. 1. AWS Budgets 대시보드에 접속 AWS Management Console에 로그인하고, AWS Budgets 대시보드로 이동합니다. 2. Budget 생성 대시보드에서 "Create budget" 또는 "Create budget" 버튼을 클릭하여 새로운 Budget을 생성합니다. 예산 금액 설정에서 기간을 변경하여 "예산 미리 보기"를 확인합니다. 3. Budget 설정 Budget Name: Budget의 이름을 지정합니다. Budget Type: 비용 또는 사용량에 따른 Bu.. 더보기
[terraform] Amazon S3로 Terraform 백엔드 구성하기 - terraform code Amazon S3로 Terraform 백엔드 구성하기 - terraform code s3 버킷 생성 - 버킷 이름 : okahpt16-terraform-s3-bucket dynamoDB 테이블 생성 - 테이블 이름 : okahpt16_terraform_lock - 파티션 키 : LockID Terraform Code $ tree . ├── main.tf └── provider.tf vim provider.tf terraform { required_providers { aws = { source = "hashicorp/aws" version = "~> 4.27.0" } } } provider "aws" { # Configuration options profile = "terraform" region = ".. 더보기
[terraform] Amazon S3로 Terraform 백엔드 구성하기 Amazon S3로 Terraform 백엔드 구성하기 전체 조건(pre requisites) - terraform - aws 계정 - awscli - s3 s3 버킷 생성 버킷 이름 : okahpt16-terraform-s3-bucket s3 버킷 s3 버킷 정책 수정 aws --profile terraform sts get-caller-identity $ aws --profile terraform sts get-caller-identity { "UserId": "ZIDAQHSHTHBEMHSPLP23T", "Account": "018256284755", "Arn": "arn:aws:iam::018256284755:user/okahpt16-terraform" } { "Version": "2012-10-17.. 더보기
[Terraform] terraform 명령어 terraform 명령어 terraform 사용법 terraform -help $ terraform -help Usage: terraform [global options] [args] The available commands for execution are listed below. The primary workflow commands are given first, followed by less common or more advanced commands. Main commands: init Prepare your working directory for other commands validate Check whether the configuration is valid plan Show changes requ.. 더보기
테라폼(Terraform) CLI를 설치하는 방법 테라폼(Terraform) CLI를 설치하는 방법 테스트 환경 $ lsb_release -d Description:Ubuntu 22.04.2 LTS 테라폼 다운로드 공식 테라폼 웹사이트(https://www.terraform.io/downloads.html)에서 운영체제에 맞는 바이너리 파일을 다운로드합니다. 테라폼은 Windows, macOS, Linux 등 다양한 운영체제를 지원하므로 해당하는 바이너리 파일을 선택합니다. 테라폼(Terraform) 설치 테라폼 저장소 추가 wget -q -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg echo.. 더보기
Amazon Route 53 Invalid Change Batch 오류(InvalidChangeBatch 400) Amazon Route 53 Invalid Change Batch 오류(InvalidChangeBatch 400) cname_txt_record_txt CNAME 레코드 추가 cname_txt_record_txt TXT 레코드 추가 cname_txt_record_txt CNAME 레코드가 있는 상태에서 cname_txt_record_txt TXT 레코드를 생성하면 아래와 같이 오류가 발생합니다. 오류 발생 잘못된 요청입니다. (InvalidChangeBatch 400: RRSet of type TXT with DNS name cname_txt_record_txt.scbyun.com. is not permitted because a conflicting RRSet of type CNAME with the .. 더보기
Amazon Route 53(cli53) 명령어 도구 Amazon Route 53(cli53) 명령 도구 Amazon Route 53 CLI(Command Line Interface) 도구인 cli53는 Route 53 DNS 서비스를 명령 줄에서 관리하기 위한 강력한 도구입니다. cli53를 사용하면 DNS 레코드를 생성, 수정, 삭제하고, 호스트 존 설정 및 관리, 호스트존 스냅샷 생성 등 다양한 DNS 관리 작업을 수행할 수 있습니다. 1. Homebrew 설치 Homebrew는 macOS에서 패키지 관리를 쉽게 할 수 있도록 도와주는 패키지 관리자입니다. 만약 Homebrew가 설치되어 있지 않다면, 아래 명령을 사용하여 Homebrew를 설치합니다. /bin/bash -c "$(curl -fsSL https://raw.githubuserconten.. 더보기
Amazon Linux 2에서 Python 3.10를 설치하는 방법 Amazon Linux 2에서 Python 3.10를 설치하는 방법 테스트 환경 운영체제 버전 정보 확인 $ cat /etc/os-release NAME="Amazon Linux" VERSION="2" ID="amzn" ID_LIKE="centos rhel fedora" VERSION_ID="2" PRETTY_NAME="Amazon Linux 2" ANSI_COLOR="0;33" CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2" HOME_URL="https://amazonlinux.com/" $ getconf LONG_BIT 64 시스템에 설치된 python version $ python --version Python 2.7.18 $ python3 --version Python.. 더보기