본문 바로가기

728x90

퍼블릭 클라우드

[iac] 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.. 더보기
[iac][terraform] aws provider 생성 terraform provider 생성 ~/.aws/credentials 확인 $ vim ~/.aws/credentials [terraformA] aws_access_key_id = AWSACCESSKEYID aws_secret_access_key = AWSSECRETACCESSKEY ~/.aws/config 확인 $ vim ~/.aws/config [terraformA] region = us-east-1 디렉토리 생성 $ mkdir -p terraformA/aws/serviceA/us-east-1 aws provider provider.tf 파일 생성 $ vim provider.tf terraform { required_providers { aws = { source = "hashicorp/aws" v.. 더보기
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 .. 더보기
[aws] AWS CodeDeploy 사용법 AWS CodeDeploy 사용법 AWS 개발자 도구 코드를 호스팅하고 자동으로 애플리케이션을 AWS로 빌드, 테스트 및 배포합니다. 웹 소스 생성 spring boot 프로젝트 생성 - vscode spring boot 프로젝트 세팅 및 실행 : https://sangchul.kr/552 appspec.yml 생성 version: 0.0 os: linux files: - source: / destination: /home/ec2-user/build/ IAM(Identity and Access Management) Role 생성 ec2 인스턴스에서 사용할 iam role 생성 Identity and Access Management(IAM) > 액세스 관리 > 역할 > 역할 만들기 정책 이름 AmazonS.. 더보기
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.. 더보기
CNCF Cloud Native Interactive Landscape CNCF Cloud Native Interactive Landscape https://landscape.cncf.io/ 더보기
[AWS] macOS에 Session Manager 플러그인 설치 및 제거 macOS에 Session Manager 플러그인 설치 및 제거 설치 환경 $ aws --version aws-cli/2.4.18 Python/3.8.8 Darwin/21.5.0 exe/x86_64 prompt/off $ which python3 /opt/homebrew/bin/python3 aws ssm start-session --target i-0b9c5 $ aws ssm start-session --target i-0b9c5 SessionManagerPlugin is not found. Please refer to SessionManager Documentation here: http://docs.aws.amazon.com/console/systems-manager/session-manager-p.. 더보기
AWS Session Manager를 사용하여 EC2 인스턴스에 연결하는 방법 AWS Session Manager를 사용하여 EC2 인스턴스에 연결하는 방법 구성도 Role 생성 IAM > 액세스 관리 > 역할 > 역할 만들기 신뢰할 수 있는 유형의 개체 선택 : AWS 서비스 사용 사례 선택 : EC2 IAM > 액세스 관리 > 역할 > 역할 만들기 권한 정책 연결 : AmazonEC2RoleforSSM IAM > 액세스 관리 > 역할 > 역할 만들기 태그 추가 IAM > 액세스 관리 > 역할 > 역할 만들기 검토 역할 이름 : EC2RoleforSSM 생성한 역할 확인 IAM > 역할 인스턴스에 "EC2RoleforSSM" 적용하기 1. 인스턴스 생성 시 2. 기존 인스턴스에 IAM 역할 추가 웹 콘솔로 SSH 접속하기 AWS Systems Manager > 세션 관리자 AWS.. 더보기

728x90