buildspec.yml
version: 0.1
environment_variables:
plaintext:
S3_BUCKET: "test"
phases:
install:
commands:
- echo Installing source NPM dependencies...
- npm install
- npm install -g @angular/cli
build:
commands:
- echo Build started on `date`
- ng build --prod -c=staging --output-hashing all
post_build:
commands:
- aws s3 rm s3://${S3_BUCKET} --recursive
- aws s3 cp dist s3://${S3_BUCKET} --recursive
- echo Build completed on `date`
artifacts:
files:
- '**/*'
base-directory: 'dist*'
discard-paths: yes
error: cloudwatch logs
pyenv: version `2.7.15' is not installed (set by /codebuild/output/src298161583/src/.python-version)
2020-07-06T19:33:12.830-04:00
2020-07-06T19:33:12.830-04:00 [Container] 2020/07/06 23:33:12 Command did not exit successfully aws s3 rm s3://${S3_BUCKET} --recursive exit status 1
aws s3 rm s3://${S3_BUCKET} --recursivelooks correct. If youecho ${S3_BUCKET}what does it give? - Marcintestis not the real bucket name which you are trying to use? - Marcin