# Step type "aws\_s3/sync" is not a valid type

**URL:** <https://discuss.circleci.com/t/step-type-aws-s3-sync-is-not-a-valid-type/39530>\
**Category:** Orbs\
**Tags:** 2.0, workflow, circle-yml, docker\
**Created:** [March 24, 2021, 7:22pm UTC](https://discuss.circleci.com/t/step-type-aws-s3-sync-is-not-a-valid-type/39530 "2021-03-24T19:22:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramakrishnareddysatt](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ramakrishnareddysatt/32/26059_2.png) [@ramakrishnareddysatt](https://discuss.circleci.com/u/ramakrishnareddysatt)\
**Post date:** [March 24, 2021, 7:22pm UTC](https://discuss.circleci.com/t/step-type-aws-s3-sync-is-not-a-valid-type/39530/1 "2021-03-24T19:22:51Z")

</div>

**Use Case/Requirement** : Store build artifacts to AWS S3 bucket.

**Issue:** In the pipeline workflow, I defined below two jobs.

- maven/test - responsible to generate build artifacts

- store/buck - responsible to store artifacts to AWS S3 bucket

I don’t see any issue with maven/test job. _However I am facing below issue for the job **store/buck**._

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

Please see below config.yml file for the same.

```
version: 2
orbs:
  aws-s3: circleci/aws-s3@2.0.0
    
jobs:
  maven/test:
    working_directory: ~/spring-project/app
    docker:
      - image: cimg/openjdk:8.0.275
    
    steps:
    - checkout
    - attach_workspace:
         at: ~/spring-project/app
    - run:
        command: find . -name 'pom.xml' | sort | xargs cat > /tmp/maven_cache_seed
        name: Generate Cache Checksum
        
    - restore_cache:
        key: maven-{{ checksum "/tmp/maven_cache_seed" }}
    - run:
        command: |
          if [-n ""]; then
            set -- "$@" --settings ""
          fi
          mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline "$@"
        name: Install Dependencies
        
    - run:
        command: |
          if [-n ""]; then
            set -- "$@" --settings ""
          fi
          mvn package "$@"
        name: Run package
        
    - persist_to_workspace:
          root: ~/spring-project/app
          paths: .
    - run:
        command: |
          if [-n ""]; then
            set -- "$@" --settings ""
          fi
          mvn verify "$@"
        name: Run Tests
        
    - save_cache:
        key: maven-{{ checksum "/tmp/maven_cache_seed" }}
        paths:
        - ~/.m2/repository
    - store_test_results:
        path: target/surefire-reports

  store/buck:
    working_directory: ~/spring-project/app
    docker:
      - image: 'cimg/python:3.9'
    steps:
      - attach_workspace:
          at: ~/spring-project/app
      - run: ls
      - aws_s3/sync:
          arguments: '--delete'
          from: '~/spring-project/app/target/spring-boot-0.0.1-SNAPSHOT.jar'
          to: 's3://spring-boot-xyz/app/'
      - aws-s3/copy:
          arguments: '--dryrun'
          from: '~/spring-project/app/target/spring-boot-0.0.1-SNAPSHOT.jar'
          to: 's3://spring-boot-xyz'
workflows:
  version: 2
  push2S3:
    jobs:
    - maven/test
    - store/buck:
        requires:
         - maven/test

```

kindly help me to fix this issue. Thank In Advance.

---

<div class="post-metadata">

**Author:** ![ramakrishnareddysatt](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ramakrishnareddysatt/32/26059_2.png) [@ramakrishnareddysatt](https://discuss.circleci.com/u/ramakrishnareddysatt)\
**Post date:** [March 25, 2021, 12:57am UTC](https://discuss.circleci.com/t/step-type-aws-s3-sync-is-not-a-valid-type/39530/2 "2021-03-25T00:57:36Z")

</div>

This issue is similar to [Step type "codecov/upload" is not a valid type](https://discuss.circleci.com/t/step-type-codecov-upload-is-not-a-valid-type/29813)

---

<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:** [April 4, 2021, 12:58am UTC](https://discuss.circleci.com/t/step-type-aws-s3-sync-is-not-a-valid-type/39530/3 "2021-04-04T00:58:34Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
