Create deployment group
name=smt-code-deploy-app-group
Service role=code-deploy-service-role
Environment configuration=Amazon EC2 instances, key=smt-code-deploy-group, value=dev
Deployment type=In place
Deployment settings=All at once
Enable load balancing=Nil
Create role 1 name=smt-code-deploy-service-role use case=CodeDeploy Policy name=AWSCodeDeployRole
Create role 2 name=smt-ec2-s3-role use case=EC2 Policy name=AmazonS3ReadOnlyAccess
Creat EC2 Instance name=smt-code-deploy-instance Role=smt-ec2-s3-role Security groups: Allow Http on 80 Tag: smt-code-deploy-group=dev
Create s3-bucket name=smt-code-deploy Upload SampleApp_Linux.zip
CodeDeploy -> Create application Application name=smt-code-deploy-app Compute platform=EC2/On-premises
Create deployment group name=smt-code-deploy-app-group Service role=code-deploy-service-role Environment configuration=Amazon EC2 instances, key=smt-code-deploy-group, value=dev Deployment type=In place Deployment settings=All at once Enable load balancing=Nil
Create deployment Revision type=S3 Revision location=s3://smt-code-deploy-2/SampleApp_Linux.zip