terraform { required_providers { aws = { source = "hashicorp/aws" version = "4.45.0" } } } # Configure the AWS Provider 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 = <