Skip to content

Instantly share code, notes, and snippets.

@ahakimx

ahakimx/main.tf Secret

Created July 3, 2022 15:14
Show Gist options
  • Save ahakimx/b87e90101547801a3cce5d8033bb88a3 to your computer and use it in GitHub Desktop.
Save ahakimx/b87e90101547801a3cce5d8033bb88a3 to your computer and use it in GitHub Desktop.
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment