...
- commit or upload the application source code (the 'Revision') – see the Upload action of the Amazon S3 Object task
- configure AWS CodeDeploy
- create an application – see the Create action of the AWS CodeDeploy Application task
- create a deployment group – see the Create action of the AWS CodeDeploy Deployment Group task
- the target instances can be provisioned with AWS CloudFormation for example – see the Create action of the AWS CloudFormation Stack task
- deploy an application revision for that application – see the Create action of the AWS CodeDeploy Deployment task
- you can also only register an application revision for a later deployment – see the Prepare action of the AWS CodeDeploy Deployment task
the AWS CodeDeploy Agent on each participating instance pulls the revision from the specified Amazon S3 bucket or GitHub repository and starts deploying the contents to that instance, following the instructions in the AppSpec file that's provided