-
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
resource "aws_iam_instance_profile" "profile" {
name = "test_profile"
role = aws_iam_role.role.name
}
resource "aws_iam_role" "role" {
name = "test_role"
path = "/"
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "ec2.amazonaws.com"
},
"Effect": "Allow",
"Sid": ""
}
]
}
EOF
}
- Pass
iam_role_arnwhich adds the arn to the instance - Pass
iam_policy_documents_jsonwhich adds the policies to the instance
Metadata
Metadata
Assignees
Labels
No labels