2

I have a CodeBuild job that builds a zip file as an artifact and pushes it to s3 ( not sure if I need the second step still.. ). the next stage runs CodeDeploy, how do I tell that stage to use the zip file I just built to deploy it ?

it looks like the logs in CodeDeploy fail at the first step, and when I go to look at the archive on the EC2, the folder doesn't exist.

the CodeDeploy and CodeBuild jobs work great independently...

1 Answer 1

1

CodePipeline automatically creates a S3 bucket for artifacts it generates when you create your pipeline. You have to specify the files included in your CodeBuild artifact that can be deployable by CodeDeploy. CodePipeline will know the location of the CodeBuild artifact from the Build step, and use it when creating the CodeDeploy deployment.

Here's a tutorial showing how to integrate CodeBuild and CodeDeploy with CodePipeline: https://www.youtube.com/watch?v=KppUHzb4kHc

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.