Deploying Kali Linux in an AWS EC2 instance using Terraform
NOTE: This is only the terraform code. If you want to build this yourself, then you will need an AWS account with the correct IAM settings, and a public and private key on your local and reference the public key in the ec2.tf file in the aws_key_pair resource.
For the full breakdown visit https://www.nullslashdev.com/aws-tutorial-deploying-kali-on-aws-using-terraform/