- "Error 400 ... Policy Document Must Contain Resources"
- This was an interim issue caused by an unneeded (empty) policy being created.
- In general, you can ignore this error and proceed with the next steps to validate the environment.
- To resolve the issue, first run
terraform init --upgrade
, then rerunterraform apply
. - If you are using Linux Academy Playground, please also consult the AWS Sandbox troubleshooting tip #3 (below) on how to restart a fresh environment if yours has timed out.
- "Error 403 ... InvalidClientTokenId"
- This most often means there's a problem with your AWS credentials file.
- If the
aws-credentials
file is still open, make sure you usectrl+s
to save the file if it is not yet saved. - If the above does not resolve the issue, you may need to return to Linux Academy Playground and make sure your AWS Sandbox is still running.
- As a last check, it is a good idea to double-check that the AWS key pair pasted matches the Linux Academy AWS credentials.
- Errors after restarting the AWS Sandbox in Linux Academy Playground
- If you run out of time on your playground account (4 hour limit), you will have to create a new environment.
- In this case, you will also have to delete the
terraform.tfstate
file - since otherwise terraform will unsuccessfully try to manage objects which no longer exist and which are not accessible from the new AWS account. - Warning: in normal environments (aka when not using Linux Academy Playground), you you should not delete the
tfstate
file and instead you can simply runterraform destroy
.
- PowerShell (PS) Terminal issues (Windows only)
- The
AWS User Switch
command is in the syntax of Command Prompt and does not work properly in PowerShell. - If you are running in PowerShell, either: (option A) run
cmd
to switch to command prompt before running the commands, or (option B) within PowerShell, replaceSET AWS_SHARED_CREDENTIALS_FILE=...
with$env:AWS_SHARED_CREDENTIALS_FILE="..."
.
- The
- Unwanted email notifications due to scheduled CI/CD jobs failing.
- Earlier versions of this lab had daily jobs scheduled by default, which would fail and send unwanted failure notifications.
- To disable these notifications, perform any one of the three options below:
- Navigate to the folder
.github/workflows
and delete the filedaily_refresh.yml
and then commit and push the change to GitHub. - Navigate to the GitHub repo on GitHub.com, open the "Settings", then under "Actions" select the option to disable all actions in the repo.
- Navigate to your personal GitHub Notification Settings page and uncheck "Email" in the "GitHub Actions" section.
- Navigate to the folder
- Error when running ECS Task:
TaskDefinition not found.
- This is most likely due to not having run the
AWS Switch Command
. Or it is not running properly. - This is normally due to a mismatch between the credentials used for a project and the
credentials stored on your machine. Try one of the below:
- Run
terraform output
and copy-paste-and-run theAWS User Switch Command
in the Terminal. - If your credentials have expired, please double check that your latest credentials are stored.
- If your Linux Academy Playground account has expired, then please delete your
terraform.tfstate
file.
- Run
- This is most likely due to not having run the
- Error during
terraform apply
:The given key does not identify an element in this collection value. ... )[split(":", location)[1]]
- This is most likely due to missing overrides for the Covid-19 secrets (aka credentials).
- To resolve, double check that you have replaced all instances of
username
andpassword
withapi_token
anduser_agent
, respectively, in02_singer-taps.tf
.
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.