I'm using CodeBuild to do a basic build for a Node project.
I'm trying to set an output folder on S3 but I cannot specify a subfolder given a Bucket, I can achieve at max one level folder.
I want to put all output files in a bucket in assets/translations/ folder.

But with this syntax CodeBuild gives me this error:
Invalid artifacts: outputName must be a valid S3 key
Can I specify in some way the subfolder in CodeBuild?
Here's my Buildspec.yml:
version: 0.2
phases:
install:
commands:
- npm ci
build:
commands:
- echo Build started on `date`
post_build:
commands:
- npm run translate
artifacts:
files:
- output/*.json
discard-paths: yes
Note: it does work when I just put assets as output folder, it works correctly