1 Answer
- Newest
- Most votes
- Most comments
0
How about the following document as a reference?
Samples are provided for cases with multiple artifacts.
You can create multiple output artifacts in buildspec.yml.
https://docs.aws.amazon.com/codebuild/latest/userguide/sample-multi-in-out.html
Relevant content
- Accepted Answerasked 6 years ago
- asked 5 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 6 days ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated a year ago
i was asking about Cloudformation script for codebuild to generate those artifacts.
Sorry, I misread that.
I checked the documentation and it certainly does not appear that CloudFormation supports the creation of secondary artifacts.
The following AWS CLI and SDK documents seem to indicate that the API itself supports the creation of secondary artifacts, so currently the only way to create them is by using CloudFormation's custom resources. https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/codebuild/client/create_project.html https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codebuild/create-project.html
For more information on custom resources, please refer to the following documents. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources.html