# .ssh folder stripped from deployed source

**URL:** <https://discuss.circleci.com/t/ssh-folder-stripped-from-deployed-source/16726>\
**Category:** Bug Reports\
**Created:** [September 21, 2017, 9:45am UTC](https://discuss.circleci.com/t/ssh-folder-stripped-from-deployed-source/16726 "2017-09-21T09:45:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaccoTopVintage](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jaccotopvintage/32/7131_2.png) [@jaccoTopVintage](https://discuss.circleci.com/u/jaccoTopVintage)\
**Post date:** [September 21, 2017, 9:45am UTC](https://discuss.circleci.com/t/ssh-folder-stripped-from-deployed-source/16726/1 "2017-09-21T09:45:46Z")

</div>

Hi,

In our source root, there is a folder named `.ssh`. This folder contains some (public) keys we need in our project.  
Our code gets pushed to AWS CodeDeploy by CirlceCI.

For some reason, the zip file containing the source, that CirclCI uploaded to AWS S3 does **not** contain the `.ssh` folder anymore.

We have observed this behavior in two of our three projects.

I’ve searched through the documentation, I can find nothing that suggests this is intended behaviour. As a result, I reached the conclusion that this is a bug.

It would be great is somebody could confirm this is, indeed, a bug.

---

<div class="post-metadata">

**Author:** ![FelicianoTech](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/felicianotech/32/21348_2.png) [@FelicianoTech](https://discuss.circleci.com/u/FelicianoTech)\
**Post date:** [September 26, 2017, 1:22am UTC](https://discuss.circleci.com/t/ssh-folder-stripped-from-deployed-source/16726/2 "2017-09-26T01:22:58Z")

</div>

How are you uploading to S3? Is it an artifact?

How is the .zip file being created?

---

<div class="post-metadata">

**Author:** ![jaccoTopVintage](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jaccotopvintage/32/7131_2.png) [@jaccoTopVintage](https://discuss.circleci.com/u/jaccoTopVintage)\
**Post date:** [September 26, 2017, 7:47am UTC](https://discuss.circleci.com/t/ssh-folder-stripped-from-deployed-source/16726/3 "2017-09-26T07:47:24Z")

</div>

Our `circle.yml` file is relatively simple:

```auto
machine:
  timezone:
    Europe/Amsterdam
  php:
    version: 7.0.20

general:
  branches:
    only:
      - master

database:
  post:
    - mysql -u ubuntu -e "CREATE DATABASE testmaster"
    - mysql -u ubuntu -e "SET PASSWORD FOR 'ubuntu'@'localhost' = PASSWORD(' ***************')"

deployment:
  master:
    branch: master
    codedeploy:
      Project-Website:
        application_root: /
        revision_location:
          revision_type: S3
          s3_location:
            bucket: codepipeline-eu-west-1-256239838791
            key_pattern: Project-Website/Website-Source.zip
        region: eu-west-1
        deployment_group: Project-Website-Staging
        deployment_config: CodeDeployDefault.OneAtATime

```

I’m not entirely sure what configuration triggers the creation of the `.zip` file. The most relevant reference seems to be in the step ‘`Create new revision of Project-Website`’ in the ‘`build details`’ page:

```auto
(...)
Uploaded Project-Website bundle to S3: {u'revisionType': u'S3', u's3Location': {'bundleType': 'zip', 'eTag': ' ********************************', u'bucket': u'****** [bucket name] *****', 'version': '********************************', u'key': u'Project-Website/Website-Source.zip'}}
Registering new revision of Project-Website from {u'revisionType': u'S3', u's3Location': {'bundleType': 'zip', 'eTag': ' ********************************', u'bucket': u'****** [bucket name] *****', 'version': ''********************************',', u'key': u'Project-Website/Website-Source.zip'}}
(...)

```

---

<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:35am UTC](https://discuss.circleci.com/t/ssh-folder-stripped-from-deployed-source/16726/4 "2018-06-18T11:35:11Z")

</div>


