Search

App Policy

resource "aws_iam_role" "app" { name = "wsi-role-app" assume_role_policy = jsonencode({ Version = "2012-10-17" Statement = [ { Action = "sts:AssumeRole" Effect = "Allow" Sid = "" Principal = { Service = "ec2.amazonaws.com" } } ] }) managed_policy_arns = ["arn:aws:iam::aws:policy/AdministratorAccess"] } resource "aws_iam_instance_profile" "app" { name = "wsi-profile-app" role = aws_iam_role.app.name }
JSON
복사