1 Answers
0
If you are using CloudFormation to provision the CodeBuild project (Assuming you are using a CodeBuild Project for your Build stage) It has the override artifact name property (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html) that allows for the name to be overridden in the buildspec.yml file.
This should allow you to do what you want as it allows the artifact name to be defined at build time.
answered a month ago
Relevant questions
Can i give custom input_artifact for codedeploy stage in codepipeline rather than using the stage output of codebuild
asked a month agoSageMaker Model Registry - how to set the Stage column of a Model Package?
asked 8 months agoCodePipeline creates a BuildArtif and SourceArti key for build artifacts by default. Is this configurable?
asked 6 months agoCodePipeline how to make artifact locations accessible to CodeBuild
Accepted Answerasked 4 years agoI would like to know easy way to start from the first line of log for the code-build execution (either in code-build console or cloudwatch-log console)
asked 3 months agoCan I skip one of the action in CodeBuild ? to continue the pipieline
Accepted Answerasked 7 months agoAWS Codepipeline is very slow(source to build stage)
asked 3 years agoIs there a way to change the name of the artifact getting stored in s3 during build stage of codepipeline?
asked a month agoDeploy only a subset of source using CodeDeploy S3 provider
Accepted Answerasked 7 months agoWhat is the simplest way to deploy a build in AWS?
asked 6 months ago
I am using terraform to provision infrastructure. I tried the above solution but it did not work. Codepipeline is giving a unique name for the build everytime.