IAM User has access to the console
Description
It is generally a good security practice to ensure that IAM users do not have access to the AWS Management Console. This can help to reduce the risk of unauthorized access to your AWS resources and prevent potential data breaches. By denying console access to IAM users, you can ensure that only authorized administrators have access to the console.
Fix - Buildtime
Terraform
resource "aws_iam_user" "pass" {
name = "tech-user"
}
resource "aws_iam_user_login_profile" "fail" {
user = aws_iam_user.fail.name
}
##not connected with pgp_key value