Untitled Deck Flashcards

1
Q

What is the main topic of the video?

A

The video discusses the authentication configuration specific to the AWS provider.

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

What method has been used for AWS access and secret keys in Terraform configuration?

A

AWS access and secret keys have been manually hard coded within the provider block in the Terraform configuration file.

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

Why is hard coding AWS access and secret keys not optimal?

A

Hard coding keys can lead to security issues, as developers may accidentally commit them to public or private GitHub repositories.

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

What happens if access and secret keys are removed from the provider configuration?

A

Terraform will not be able to connect to AWS and authenticate to create resources.

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

What is one recommended alternative to hard coding AWS credentials?

A

Specify the config and credentials files in a separate location on your workstation.

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

What is a potential issue with using separate credential files in a team?

A

Different team members may have different locations for their credential files, leading to inconsistencies.

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

Where does Terraform look for AWS credentials by default on Linux and macOS?

A

Terraform looks for credentials at HOME/.aws/config and HOME/.aws/credentials.

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

Where does Terraform look for AWS credentials by default on Windows?

A

Terraform looks for credentials at USERPROFILE%.aws\config and USERPROFILE%.aws\credentials.

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

What is the benefit of installing AWS CLI?

A

AWS CLI allows customers to manage AWS resources directly from the command line.

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

Where does AWS CLI store the access and secret keys?

A

AWS CLI stores the access and secret keys in the same locations as Terraform: .aws/config and .aws/credentials.

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

What command is used to configure AWS CLI with access and secret keys?

A

The command used is ‘aws configure’.

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

What happens when you run ‘terraform plan’ without valid credentials?

A

You will receive an error stating that no valid credential sources for AWS provider were found.

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

What should you do if you want to confirm that Terraform is working correctly after configuring AWS CLI?

A

Run ‘terraform apply’ with auto-approve to create resources.

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

What are some other methods for AWS authentication mentioned in the video?

A

You can use environment variables, shared config files, shared credentials files, or assume an IAM role.

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

Why is it recommended to use AWS CLI for storing credentials?

A

Using AWS CLI is beneficial for managing credentials securely and supports single sign-on solutions.

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

What was the reason for adding the authentication configuration video early in the course?

A

To help students write more secure code from the beginning and avoid leaking access and secret keys.