Difference between revisions of "Terraform resource: aws iam user"
Jump to navigation
Jump to search
Line 46: | Line 46: | ||
* <code>[[aws_iam_role]]</code> | * <code>[[aws_iam_role]]</code> | ||
* [[aws_iam_user_policy]] | * [[aws_iam_user_policy]] | ||
+ | * [[Terraform EKS module]]: <code>[[aws_auth_users]]</code> | ||
== See also == | == See also == |
Revision as of 16:40, 24 October 2023
Examples
Official example
resource "aws_iam_user" "lb" { name = "loadbalancer" path = "/system/" tags = { tag-key = "tag-value" } } resource "aws_iam_access_key" "lb" { user = aws_iam_user.lb.name } resource "aws_iam_user_policy" "lb_ro" { name = "test" user = aws_iam_user.lb.name policy = <<EOF { "Version": "2012-10-17", "Statement": [ { "Action": [ "ec2:Describe*" ], "Effect": "Allow", "Resource": "*" } ] } EOF }
Additional examples
resource "aws_iam_user" "mytest" { name = "mytest" }
Related
See also
Advertising: