DEV Community

Discussion on: Deploy Elixir + Phoenix to AWS ECS with GitLab CI and Terraform

Collapse
organicnz profile image
Tarlan Isaev • Edited on

Yeah, on CI. I've already pushed that code to my repo :)
pastebin.com/vdbDW8Um
gitlab.com/organicnz/myapp-terraform

Thread Thread
hlappa profile image
Aleksi Holappa Author • Edited on

I see your problem! Please place the .gitlab-ci.yml to repository which contains your Elixir + Phoenix application. It should be placed to the root of the repository.

Second thing, never push the state files publicly to any platform. They should be ignored with .gitignore, crypted with git-crypt (or other encrypting tool) or the best solution would be to use remote state.

Thread Thread
organicnz profile image
Tarlan Isaev • Edited on

Would it be appropriate if I use your Elixir application for the CI github.com/hlappa/microservice_exe... or anyone? :)

Jeez, that's right I completely forgot to sanitise that area, already added .gitignore file then will try to figure out how to push it to the remote state on AWS :)