First off this lab is entirely optional and also not for the faint hearted. Gitlab CI is currently introducing components to replace the current templates and openTofu will be updated to that as soon as they are supported in self managed runners. If you're not comfortable experimenting and cleaning things up in AWS manually **don't do this lab**. For this lab I recommend using the terraform template, I'll update this once the tofu templates are ready.
Hit next and continue. On the next screen click attach policy and choose Administrator Access (this is because you sometimes need to use terraform/tofu to create IAM policies)
Now click next until the user is created. You can now click that user in the IAM console and click on the security tab. Here you'll need to click on ```create access key```
![Generate an AWS user](./img/aws-3.png)
Now you can select the top option ```Command Line Interface``` and check the accept box at the bottom of the page then hit next.
![Generate an AWS user](./img/aws-4.png)
Enter gitlab access for the optional field.
![Generate an AWS user](./img/aws-5.png)
Now click ```Download CSV``` and save this file for getting your access keys from later, you'll need to input these into Gitlab.
[The Terraform Tofu Labs](https://gitlab.com/ric_harvey/terraform-tofu-labs) by [Ric Harvey](https://awscommunity.social/@Ric) is licensed under [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/?ref=chooser-v1")