루트사용자(root)
IAM사용자(일반유저)
AWS 자격 증명 유형
- 액세스 키 - 프로그래밍 방식 액세스 : 터미널 환경
- 암호 - AWS 관리 콘솔 액세스 : 웹 환경
사용자 추가
권한 추가 - 기존 정책 직접 연결
PowerUserAccess 권한 추가
Authy 폰으로 다운
MFA : 1회용 비밀번호
MFA 추가 - MFA 활성화 - 가상 MFA 디바이스 - QR코드 - MFA 코드
계정별칭 생성
-IAM 사용자 로그인할때-
생성한 아이디 -> Sample
=========================
CLI로 aws로 로그인
ubuntu xterm들어가서 pdf파일에있는
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
복사해서 xterm에 붙혀넣어서 다운로드
압축해제 패키지 설치
sudo apt install unzip
unzip awscliv2.zip - 압축해제 명령어
cd aws # awscliv2.zip 압축풀면 생김
sudo ./install
aws 버젼 확인법
aws --version
==========================
CLI 자격증명 설정
aws configure
AWS Access Key ID [None]: AKIATX2F25H7WE3ZT4EZ
AWS Secret Access Key [None]: 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
Default region name [None]: ap-northeast-2
Default output format [None]: json
현재 설정된 AWS 계정 정보 확인
aws sts get-caller-identity
============================
terraform install 구글검색
리눅스 명령어 복사 ubuntu에 붙혀넣기
terraform --version 버젼확인
연습
mkdir 01-terraform
cd 01-terraform
vim main.tf
provider "aws" {
region = "ap-northeast-2"
}
resource "aws_instance" "aws08-ec2" {
ami = "ami-09cf633fe86e51bf0"
instance_type = "t2.micro"
#tags 추가
tags = {
Name = "aws08"
}
}
ami : 내가만들고싶은 운영체제
terraform init #terraform 초기화
terraform apply # terraform 적용
terraform destroy # terraform 삭제
=================================
terraform : 쓰고지우면서 배울것
ansible : 관리하는법 배울것
===============================
git 설치
git bash
cd c:/get_repo
echo "# sample"
echo "# sample" >> README.md
git init # git 초기화 => .git파일 생성
-키생성-
ssh-keygen -t ed25519 -C "~@naver.com"
사용자 -> admin -> .ssh -> 공용키 개인키 확인
git hub로가서 세팅 ssh and gpg keys 가서 ssh key등록
-commit추가-
git config --global user.email "~@naver.com"
git config --global user.name "~"
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:Ryu-dongwoo/Sample.git
git push -u origin main