Step type "aws_s3/sync" is not a valid type

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.

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.

This issue is similar to Step type "codecov/upload" is not a valid type

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