Here's a compilation of Frequently Asked Questions (FAQs). Feel free to add to our FAQs by raising a Pull Request (PR).
- Example error message
aws: error: argument operation: Invalid Choice-
When copying and pasting commands from Github viewed on a browser, the formatting can result in the command not being recognised in your terminal.
-
We recommend you try to copy and paste the command from your code editor instead e.g. Visual Studio Code, Notepad++ etc.
-
While you're learning, we encourage you to type commands out by hand so that you can reinforce your knowledge a bit better.
-
If you get an error during
terraform apply, let's determine if it's just a one-off issue or does the command fail consistently in the same place i.e. can you reproduce the error messages? -
Run
terraform applyagain to see what outcome you get. -
You can also try to run
terraform destroyfirst and then runterraform applyagain.
-
When you want a blank slate to work from, it is advisable to ensure that the state has been fully cleared down.
-
Run
terraform destroy -
Once that's complete run:
rm -rf .terraform- And then run:
rm -rf terraform.tfstate*Sometimes the terraform apply can intermittently hang when trying to setup your kubectl config. You'll see this because it will take over 20 mins to create the cluster and keep repeating the same step that it is waiting for.
If you do experience this then simply hit Ctrl + C (to cancel the run) and then re-run terraform apply - it should identify that much of the items have been created and finish off with updating your kubeconfig.
- You need to run the
terraform destroycommand from the location where your terraform config is
- The instructions mentioned that the first password may fail. We recommend you try a different command to get a different password. The second one usually works (make sure you remove the % character at the end if it's there).