- Have a Snyk AWS Account with access to
us-west-2
- Create a free Fugue account https://www.fugue.co/
- Use your Snyk email
- Install and configure AWS CLI:
- Install AWS CLI - Mac download link
- Run
aws configure
and follow the steps to add yourAWS Access Key ID
andAWS Secret Key
and set the Default region name tous-west-2
, you can leave the output as default - If you can't find your AWS keys you can create new keys as described by Amazon
- Test with
aws s3 ls
- Install and configure Terraform:
- Install Terraform - Mac download link:
- Direct link Intel
- Direct link ARM
- Using Brew
brew tap hashicorp/tap
brew install hashicorp/tap/terraform
- Test with
terraform -help
- Install Terraform - Mac download link:
- Clone this repository
git clone https://github.com/EricFernandezSnyk/terraform-aws-fugue-workshop.git
- Navigate to the repository
cd terraform-aws-fugue-workshop
- Run
terraform init
- Optional: Change the EC2 Name tag to your name
- Run
terraform plan
(the output should summarisePlan: 3 to add, 0 to change, 0 to destroy
) - Run
terraform apply
- Question time!
- Login to AWS
- Navigate to EC2 and make sure your region is set to us-west-2
- Alternatively, follow this link to EC2 us-west-2
- Find your EC2 instance with your unique ID and click on it
- Question time!
- Login to Fugue
- Go to this view of Fugue to find all EC2 instances in
us-west-2
. - Find your instance and click on it!
- Question time!
- Snyk peek of what is coming 😁
- Extra time:
- Run
terraform destroy
(the output should summarisePlan: 0 to add, 0 to change, 3 to destroy
) - We are done!