resource "aws_iam_instance_profile" "default" { name = "default" role = "${aws_iam_role.instance_role.name}" } resource "aws_iam_role" "instance_role" { name = "instance_role" assume_role_policy = <