You've already forked devops-exercises
Update solution.md (#398)
* Update solution.md I have added a solution to the exercise using Terraform * Update solution.md fixed some indentations * Update solution.md * Update solution.md Added a solution using Terraform
This commit is contained in:
@@ -30,3 +30,17 @@ MFA:
|
||||
3. Expand "Multi-factor authentication (MFA)" and click on "Activate MFA"
|
||||
4. Choose one of the devices
|
||||
5. Follow the instructions to set it up and click on "Assign MFA"
|
||||
|
||||
6. ### Solution using Terraform:
|
||||
|
||||
```
|
||||
resource "aws_iam_account_password_policy" "strict" {
|
||||
minimum_password_length = 8
|
||||
require_numbers = true
|
||||
allow_users_to_change_password = true
|
||||
password_reuse_prevention = 1
|
||||
}
|
||||
```
|
||||
|
||||
**Note:** You cannot add MFA through terraform, you have to do it in the GUI.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user