Failure injection is a means of testing resiliency by which a specific failure type is simulated on a service and its response is assessed.
You have a choice of environments from which to execute the failure injections for this lab. Bash scripts are a good choice and can be used from a Linux command line. If you prefer Python, Java, Powershell, or C# instructions for these are also provided.
Your execution environment needs to be configured to enable access to the AWS account you are using for the workshop. This includes
Note: us-east-2 is the Ohio region
This option uses the AWS CLI. If you do not have this installed, or do not want to install it, then use Option B
To see if the AWS CLI is installed:
$ aws --version aws-cli/1.16.249 Python/3.6.8...
command not foundthen either install the AWS CLI or use Option B
aws configure and provide the following values:
$ aws configure AWS Access Key ID [*************xxxx]: <Your AWS Access Key ID> AWS Secret Access Key [**************xxxx]: <Your AWS Secret Access Key> Default region name: [us-east-2]: us-east-2 (or your chosen region) Default output format [None]: json
If you already did Option A, then skip this
.aws directory under your home directory
Change directory to there
Use a text editor (vim, emacs, notepad) to create a text file (no extension) named
credentials. In this file you should have the following text.
[default] aws_access_key_id = <Your access key> aws_secret_access_key = <Your secret key>
Create a text file (no extension) named
config. In this file you should have the following text:
[default] region = us-east-2 (or your chosen region) output = json
Choose the appropriate section below for your language