version: 0.2 phases: install: runtime-versions: java: corretto8 commands: # Install packages or any pre-reqs in this phase. # Upgrading SAM CLI to latest version - pip3 install --upgrade aws-sam-cli - sam --version build: commands: # Use Build phase to build your artifacts (compile, etc.) # - cd HelloWorldFunction - mvn package -DskipTests=true # - cd .. # - sam build post_build: commands: # Use Post-Build for notifications, git tags, upload artifacts to S3 - sam package --s3-bucket $PACKAGE_BUCKET --output-template-file packaged.yaml artifacts: discard-paths: yes files: # List of local artifacts that will be passed down the pipeline - packaged.yaml