> For the complete documentation index, see [llms.txt](https://smadi0x86-blog.gitbook.io/sre-platform-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smadi0x86-blog.gitbook.io/sre-platform-documentation/setting-up-your-environment.md).

# Setting Up Your Environment

We have prepared a Docker image with all necessary dependencies and utilities. You can use it to run exams or labs by following the instructions below or follow the [video guide](https://youtu.be/Xh6sWzafBmw).

## Run the Docker Container

```bash
sudo docker run -it viktoruj/runner
```

## Clone the Git Repository

```bash
git clone https://github.com/smadi0x86/SRE-Platform
cd SRE-Platform
```

## Update S3 Bucket

By now, you should have created an S3 bucket for the Terraform backend. If you haven't, please refer to the [AWS documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html) to create one.

> Make sure to enable bucket versioning when creating the S3 bucket.

### Edit the \`terragrunt.hcl\` file to update your S3 bucket name

```bash
vim terraform/environments/terragrunt.hcl
```

```hcl
locals {
region = "eu-north-1"
backend_region = "eu-north-1"
backend_bucket = "example-bucket" # update with your own bucket name
backend_dynamodb_table = "${local.backend_bucket}-lock"
}
```

## Set the AWS Key

```bash
export AWS_ACCESS_KEY_ID=<Your-Access-Key>
export AWS_SECRET_ACCESS_KEY=<Your-Secret-Access-Key>
```
