terraform { required_providers { aws = { source = "hashicorp/aws" version = "5.26.0" } } } provider "aws" { region = var.region } resource "random_id" "uid" { byte_length = 8 } resource "aws_iam_instance_profile" "control_plane_instance_profile" { name = "${var.name_prefix}_control_plane_instance_profile" role = aws_iam_role.control_plane_role.name } resource "aws_iam_role" "control_plane_role" { name = "${var.name_prefix}_control_plane_role" path = "/" assume_role_policy = <