image-20220314093033030

image-20220314093121023

创建一个EC2,绑定一个role,这个role具有访问s3的权限

image-20221002132713471

给ec2一个tag, name=webserver env=dev

image-20221002133325975

给code deploy创建一个service role awscodedeployrole

image-20221002133419092

image-20221002133537732

创建deployment

image-20221002133606746

image-20221002133629786

image-20221002133816763

image-20221002133848935

创建deployment

image-20221002133959240

访问ec2,可以看到web页面