Search

Cluster

private_a=$(aws ec2 describe-subnets --filters "Name=tag:Name,Values=ws-private-a" --query "Subnets[].SubnetId[]" --region ap-northeast-2 --output text) private_b=$(aws ec2 describe-subnets --filters "Name=tag:Name,Values=ws-private-b" --query "Subnets[].SubnetId[]" --region ap-northeast-2 --output text) sg_id=$(aws ec2 describe-security-groups --query "SecurityGroups[?GroupName=='control-plane-sg'].GroupId" --output text) sed -i "s|sg_id|$sg_id|g" cluster.yaml sed -i "s|private_a|$private_a|g" cluster.yaml sed -i "s|private_b|$private_b|g" cluster.yaml eksctl create cluster -f cluster.yaml
Shell
복사