Slide 34
Slide 34 text
Addition
Amazon EKS ϫʔΧʔϊʔυΛىಈͯ͠ઃఆ͢Δ
- name: "regist subnet”
shell: aws cloudformation describe-stacks --stack-name eks-vpc --query 'Stacks[0].Outputs[?OutputKey==`SubnetIds`]
[].OutputValue' --output text
register: subnet
- name: "regist vpc”
shell: aws cloudformation describe-stacks --stack-name eks-vpc --query 'Stacks[0].Outputs[?OutputKey==`VpcIds`]
[].OutputValue' --output text
register: vpc
- name: "regist sg”
shell: aws cloudformation describe-stacks --stack-name eks-vpc --query 'Stacks[0].Outputs[?OutputKey==`SecurityGroups`]
[].OutputValue' --output text
register: sg
- name: "create eks-demo-vpc deploy"
shell: aws cloudformation create-stack --stack-name eks-vpc --region us-east-1 --template-url https://amazon-eks.s3-us-
west-2.amazonaws.com/1.10.3/2018-07-26/amazon-eks-nodegroup.yaml —parameters ClusterName=test-
cluster,ClusterControlPlaneSecurityGroup={{ sg.output }},NodeGroupName=test-
cluster,NodeAutoScalingGroupMinSize=1,NodeAutoScalingGroupMaxSize=1,NodeInstanceType=t2.large,NodeImageId=ami-048
486555686d18a0,VpcId={{ vpc.output }},Subnets={{ subnet.output }}
register: result
Լ४උ͚ͩͰ͜Μ͚ͩɾɾɾ