-
-
Save ahakimx/55e6f6ca75acd158184bd84723c0a0c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_iam_user" "admin_user" { | |
name = "ha" | |
tags = { | |
Description = "Tech Lead" | |
} | |
} | |
resource "aws_iam_user_login_profile" "userLogin" { | |
user = aws_iam_user.admin_user.name | |
} | |
resource "aws_iam_policy" "adminUser" { | |
name = "AdminUsers" | |
policy = file("admin-policy.json") | |
} | |
resource "aws_iam_user_policy_attachment" "admin-access" { | |
user = aws_iam_user.admin_user.name | |
policy_arn = aws_iam_policy.adminUser.arn | |
} | |
output "password" { | |
value = aws_iam_user_login_profile.userLogin.password | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment