Creating Firewalls Flashcards

1
Q

What is the focus of today’s video?

A

The video explores how to create firewall rules in AWS through Terraform.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the name of the security group to be created?

A

The name of the security group should be terraform-firewall.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the inbound rules for the security group?

A

Allow Port 80 from the internet (0.0.0.0).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the outbound rules for the security group?

A

ALLOW ALL.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the purpose of a security group in AWS?

A

A security group acts as a virtual firewall to control inbound and outbound traffic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can you find Terraform code to create a security group?

A

Type ‘Terraform security group’ to access the appropriate documentation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the first block of code to understand when creating a security group?

A

The aws_security_group block allows you to create a security group in AWS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the two approaches to understand the parts of a Terraform resource?

A
  1. Read the documentation. 2. Create a resource from the console.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the description of the security group?

A

Managed from Terraform.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the significance of the VPC ID in the security group?

A

The VPC ID is optional and can be omitted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What command is used to initialize Terraform?

A

The command is ‘terraform init’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What command is used to plan changes in Terraform?

A

The command is ‘terraform plan’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What command is used to apply changes in Terraform?

A

The command is ‘terraform apply’ with auto-approve.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are ingress and egress rules in security groups?

A

Ingress refers to inbound rules, while egress refers to outbound rules.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the CIDR notation for allowing all IP addresses?

A

0.0.0.0/0.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does the IP protocol ‘-1’ signify in outbound rules?

A

It signifies allowing all protocols.

17
Q

What is the purpose of specifying a port range?

A

To allow a range of ports without creating multiple individual rules.

18
Q

What happens when you change the security group ID in the rules?

A

The rules will be added to the specified security group instead.

19
Q

What is the importance of understanding different resource types in Terraform?

A

Different resource types are managed on different documentation pages.