KMS Key 생성
Last updated
Last updated
aws kms create-alias --alias-name alias/eksapp --target-key-id $(aws kms create-key --query KeyMetadata.Arn --output text)
export MASTER_ARN=$(aws kms describe-key --key-id alias/eksapp --query KeyMetadata.Arn --output text)
cd ~/environment
echo $MASTER_ARN
echo $MASTER_ARN > master_arn.txt
cat master_arn.txt
echo "export MASTER_ARN=${MASTER_ARN}" | tee -a ~/.bash_profile
source ~/.bash_profile