Create an Application (CLI)
To use the AWS CLI to create an application, call the create-application command, specifying a name that uniquely represents the application. (In an AWS account, an AWS CodeDeploy application name can be used only once per region. You can reuse an application name in different regions.)
After you use the AWS CLI to create an application, the next step is to create a deployment group, which specifies the instances to which to deploy revisions. For instructions, see Create a Deployment Group.
After you create the deployment group, the next step is to prepare a revision to deploy to the application and deployment group. For instructions, see Working with Application Revisions.