Elastic Deploy Runner: Error: main is not a supported Git Ref for running apply #228
-
A customer asked:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
For this particular case, the issue is indeed that the deploy runner is configured to expect My recommendation would be to switch your main git branch to using Alternatively, if you wish to continue using main, you can update the allowed apply refs from master to main for the ecs-deploy-runner here: Note that the latter requires deploying the |
Beta Was this translation helpful? Give feedback.
-
Credit for this solution goes to @yorinasub17 |
Beta Was this translation helpful? Give feedback.
For this particular case, the issue is indeed that the deploy runner is configured to expect
master
based on the form input, and there is a bug in our scripts where it generated the GitHub Actions expectingmain
.My recommendation would be to switch your main git branch to using
master
by creating a new branch off ofmain
and pushing that as the default branch for your repo. Once you do that, you will want to make sure the GitHub Actions code is updated to usemaster
instead ofmain
.Alternatively, if you wish to continue using main, you can update the allowed apply refs from master to main for the ecs-deploy-runner here:
https://github.com/gruntwork-clients/infrastructure-live-<your-comp…