Test Your Knowledge: AWS EC2 and Security Group with Terraform

1. What is the purpose of the AWS provider block in Terraform?

2. What does the `ami` argument in the `aws_instance` resource specify?

3. What is the purpose of the `instance_type` argument in the `aws_instance` resource?

4. What does the `key_name` argument in the `aws_instance` resource specify?

5. What is the purpose of the `security_groups` argument in the `aws_instance` resource?

6. What is the purpose of the `aws_security_group` resource?

7. What does the `ingress` block in the `aws_security_group` resource define?

8. What does the `egress` block in the `aws_security_group` resource define?