Created
June 3, 2019 12:33
-
-
Save maximmi/6891e3714c4be035ebad32705a1e4c6b to your computer and use it in GitHub Desktop.
Access to AWS ECS Atlantis container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
workflows: | |
make: | |
plan: | |
steps: | |
- run: '$DIR/run-tmate.sh' | |
# - run: "make reset deps" | |
# - run: "set -o pipefail; make plan | tfmask | scenery --no-color" | |
apply: | |
steps: | |
- run: "set -o pipefail; make apply | tfmask" | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tmate -S /tmp/tmate.sock new-session -d | |
tmate -S /tmp/tmate.sock wait tmate-ready | |
tmate -S /tmp/tmate.sock display -p '#{tmate_ssh}' | |
tmate -S /tmp/tmate.sock display -p '#{tmate_web}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tmate
(we might include tmate into base geodesic at some point, so we can avoid first three steps)RUN apk add tmate@testing
run-tmate.sh
to your module folder, for exampleconf/vpc/
atlantis plan -p vpc
or it can go automaticallyNOTE: might fail to run again, because of sock already in use (just remove
run: '$DIR/run-tmate.sh'
from Atlantis)