helm 명령어는 chart 단위로 실행된다.
helm install 하면 NGINX 실행에 필요한 각종 리소스가 자동으로 실행된다. (pod, service, deploy)
매니패스트 파일 -(helm install)→ service, deploy, pod 생성
스크립트에 오타 있음 (두번째 줄에 --region
추가)
# Use your account number below
ACCOUNT_ID=$(aws sts get-caller-identity | jq -r '.Account')
aws s3 mb s3://eksworkshop-${ACCOUNT_ID}-codepipeline-artifacts --region us-west-2
cd ~/environment
wget <https://eksworkshop.com/intermediate/260_weave_flux/iam.files/cpAssumeRolePolicyDocument.json>
aws iam create-role --role-name eksworkshop-CodePipelineServiceRole --assume-role-policy-document file://cpAssumeRolePolicyDocument.json
wget <https://eksworkshop.com/intermediate/260_weave_flux/iam.files/cpPolicyDocument.json>
aws iam put-role-policy --role-name eksworkshop-CodePipelineServiceRole --policy-name codepipeline-access --policy-document file://cpPolicyDocument.json
wget <https://eksworkshop.com/intermediate/260_weave_flux/iam.files/cbAssumeRolePolicyDocument.json>
aws iam create-role --role-name eksworkshop-CodeBuildServiceRole --assume-role-policy-document file://cbAssumeRolePolicyDocument.json
wget <https://eksworkshop.com/intermediate/260_weave_flux/iam.files/cbPolicyDocument.json>
aws iam put-role-policy --role-name eksworkshop-CodeBuildServiceRole --policy-name codebuild-access --policy-document file://cbPolicyDocument.json