# register\_application\_revision fails when deploying to AWS

**URL:** <https://discuss.circleci.com/t/register-application-revision-fails-when-deploying-to-aws/4988>\
**Category:** Deployments\
**Tags:** codedeploy, aws\
**Created:** [July 6, 2016, 2:32pm UTC](https://discuss.circleci.com/t/register-application-revision-fails-when-deploying-to-aws/4988 "2016-07-06T14:32:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shlomikushchi](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/shlomikushchi/32/3644_2.png) [@shlomikushchi](https://discuss.circleci.com/u/shlomikushchi)\
**Post date:** [July 6, 2016, 2:32pm UTC](https://discuss.circleci.com/t/register-application-revision-fails-when-deploying-to-aws/4988/1 "2016-07-06T14:32:16Z")

</div>

Hi All,  
I’m having an issue when trying to deploy my app to aws.  
this is my configuration ( based on [recommended\_config](https://discuss.circleci.com/t/missing-aws-codedeploy-settings-for-app/716/4)):  
deployment:

> ```
> staging:
> branch: master
> codedeploy:
> my_app_name:
> application_root: /
> revision_location:
> revision_type: S3
> s3_location:
> bucket: my-bucket
> key_pattern: my_app_name-{SHORT_COMMIT}
> deployment_group: DeploymentGroup
> deployment_config: CodeDeployDefault.AllAtOnce
> 
> ```

uploading the bundle to S3 succeeded.  
then when trying to register the revision:

 ![](https://global.discourse-cdn.com/circleci/original/3X/c/e/ce8996857213813747d9fd9fccd28d3ac8d366d4.png)

when calling this command from the AWS CLI:  
`aws deploy register-application-revision --application-name my_app_name --s3-location bucket=my-bucket,key=my_app_name-9155545,bundleType=zip`  
everything works properly

What else can I check?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:41am UTC](https://discuss.circleci.com/t/register-application-revision-fails-when-deploying-to-aws/4988/2 "2018-06-18T11:41:04Z")

</div>

Closed on June 18, 2018, 11:41am UTC


