variable "iam_user_prefix" { default = "boundary-plugin-host-aws-test-iam-user" } variable "iam_user_count" { default = 6 } resource "random_id" "aws_iam_user_name" { count = var.iam_user_count prefix = "${var.iam_user_prefix}-${count.index}" byte_length = 4 } resource "aws_iam_user" "user" { count = var.iam_user_count name = random_id.aws_iam_user_name[count.index].dec force_destroy = true tags = var.project_path_tags } resource "aws_iam_access_key" "user_initial_key" { count = var.iam_user_count user = aws_iam_user.user[count.index].name } resource "aws_iam_policy" "ec2_describeinstances" { name = "BoundaryPluginHostAwsTestDescribeInstancesPolicy" policy = <