Skip to content

Workshop for SE small hands -> Going from code to cloud and cloud to code with Terraform, AWS and Fugue

Notifications You must be signed in to change notification settings

EricFernandezSnyk/terraform-aws-fugue-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Terraform to AWS to Fugue Workshop

Requirements

  1. Have a Snyk AWS Account with access to us-west-2
  2. Create a free Fugue account https://www.fugue.co/
    • Use your Snyk email
  3. Install and configure AWS CLI:
    • Install AWS CLI - Mac download link
    • Run aws configure and follow the steps to add your AWS Access Key ID and AWS Secret Key and set the Default region name to us-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
  4. Install and configure Terraform:
    • Install Terraform - Mac download link:
    • Test with terraform -help

Step by step guide

  1. Clone this repository git clone https://github.com/EricFernandezSnyk/terraform-aws-fugue-workshop.git
  2. Navigate to the repository cd terraform-aws-fugue-workshop
  3. Run terraform init
    • Optional: Change the EC2 Name tag to your name
  4. Run terraform plan (the output should summarise Plan: 3 to add, 0 to change, 0 to destroy)
  5. Run terraform apply
  6. Question time!
  7. Login to AWS
  8. Navigate to EC2 and make sure your region is set to us-west-2
  9. Find your EC2 instance with your unique ID and click on it
  10. Question time!
  11. Login to Fugue
  12. Go to this view of Fugue to find all EC2 instances in us-west-2.
  13. Find your instance and click on it!
  14. Question time!
  15. Snyk peek of what is coming 😁
  16. Extra time:
    • Fixing vulnerability FG_R00253
    • Uncomment line 34 in main.tf
    • Run terraform plan
    • Run terraform apply
    • Open Fugue
    • Verify that you fixed the vulnerability
  17. Run terraform destroy (the output should summarise Plan: 0 to add, 0 to change, 3 to destroy)
  18. We are done!

About

Workshop for SE small hands -> Going from code to cloud and cloud to code with Terraform, AWS and Fugue

Resources

Stars

Watchers

Forks

Languages