You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running atlantis testdrive with credentials for ngrok paid acocunt, it will fail:
> sudo NGROK_AUTHTOKEN=<token> ./atlantis testdrive
Welcome to Atlantis testdrive!
This mode sets up Atlantis on a test repo so you can try it out. We will
- fork an example terraform project to your username
- install terraform (if not already in your PATH)
- install ngrok so we can expose Atlantis to GitHub
- start Atlantis
Press Ctrl-c at any time to exit
github.com username: <username>
To continue, we need you to create a GitHub personal access token
with "repo" scope so we can fork an example terraform project.
Follow these instructions to create a token (we don't store any tokens):
https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-fine-grained-personal-access-token
- use "atlantis" for the token description
- add "repo" scope
- copy the access token
GitHub access token (will be hidden):
=> forking repo
=> fork completed!
=> terraform found in $PATH at /usr/local/bin/terraform
=> ngrok found in $PATH at /usr/bin/ngrok
=> creating secure tunnel
=> started tunnel!
Error: getting tunnel url: Get "http://localhost:41414/api/tunnels": dial tcp [::1]:41414: connect: connection refused
Underlying error:
ERROR: failed to start tunnel: Your account is on the 'Pay-as-you-go' plan, which requires you to register a Domain or TCP Address through the ngrok Dashboard before starting an Endpoint. Visit https://dashboard.ngrok.com/domains, for HTTP and TLS endpoints, or https://dashboard.ngrok.com/tcp-addresses, for TCP endpoints, to register a domain or address. Then use the `--domain` flag when starting an HTTP or TLS tunnel with your Agent. For TCP tunnels, use `--remote_addr`.
The text was updated successfully, but these errors were encountered:
Hey there, @gladykov! I'm here to help you out with any bugs, questions, or contributions you need assistance with. Let's tackle this issue together!
The error you're encountering is due to the requirements of ngrok's "Pay-as-you-go" plan, which mandates registering a domain or TCP address before starting a tunnel. To resolve this, you need to modify the atlantis testdrive command to include the necessary ngrok flags for your paid account.
Here's what you can do:
Register a Domain or TCP Address: Go to the ngrok dashboard and register a domain or TCP address as required by your plan.
Modify the Atlantis Code: You will need to adjust the code in testdrive/testdrive.go to pass the --domain or --remote_addr flag when starting the ngrok tunnel. This involves editing the part of the code where the ngrok command is executed:
When running
atlantis testdrive
with credentials for ngrok paid acocunt, it will fail:Underlying error:
ERROR: failed to start tunnel: Your account is on the 'Pay-as-you-go' plan, which requires you to register a Domain or TCP Address through the ngrok Dashboard before starting an Endpoint. Visit https://dashboard.ngrok.com/domains, for HTTP and TLS endpoints, or https://dashboard.ngrok.com/tcp-addresses, for TCP endpoints, to register a domain or address. Then use the `--domain` flag when starting an HTTP or TLS tunnel with your Agent. For TCP tunnels, use `--remote_addr`.
The text was updated successfully, but these errors were encountered: