Skip to content

How is the code deploy being triggered? #19

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
JacobWeyer opened this issue Feb 28, 2020 · 3 comments
Open

How is the code deploy being triggered? #19

JacobWeyer opened this issue Feb 28, 2020 · 3 comments

Comments

@JacobWeyer
Copy link

After the initial deploy are you redeploying the terraform or doing a code deploy command?

@thatbeardo
Copy link

@JacobWeyer, I have the same question. I believe this module will only create the CodeDeploy resource(s) once and the triggering mechanism is left upto you. The best I can think of is to use a Terraform local exec resource to manually run an aws-cli deploy command to trigger the actual deployment. Let me know if you have any findings that suggest otherwise!

@spatel96
Copy link

@JacobWeyer @thatbeardo

I've used this module in conjunction with an AWS ECS CodePipeline module which is triggered upon artifacts changes.

There are 3 of these artifacts:

  • appspec.yml
  • task_definition.json
  • container image tag

Terraform generates these artifacts from source (checked in template files) and populates the templates using interpolation for various environment variables. This is then zipped up and uploaded to S3 for the appspec and task definition.

The container image tag is simply listening for a specific tag to be pushed to an ECR Repo. For example master-ci for a CI pipeline.

@paambaati
Copy link

This has been very useful to me – https://www.scalefactory.com/blog/2023/03/07/using-codedeploy-with-terraform-and-github-actions/

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants