At the end of the deploy getting errors on policy that already exists. Are you trying to update the existing policy and something changed in way that's done. I had to update a lot of the variables to work with latest version of terraform. I'm two days into learning Terraform so sorry if I'm missing something simple...
aws_vpc_dhcp_options_association.my_microsoftad_dns_resolver: Creation complete after 0s [id=dopt-0b18e139b58f4408d-vpc-0fe972082b01d5b63]
Error: Error creating IAM policy ec2-ssm-policy: EntityAlreadyExists: A policy called ec2-ssm-policy already exists. Duplicate names are not allowed.
status code: 409, request id: e0e72560-d31d-48cd-812f-19862eec074c
on iam.tf line 26, in resource "aws_iam_policy" "ec2-ssm-policy":
26: resource "aws_iam_policy" "ec2-ssm-policy" {
Error: ClientException: Invalid VPC ID. : RequestId: a12399c5-da8a-42f2-8176-6b6a3cc5d1ce
{
RespMetadata: {
StatusCode: 400,
RequestID: "a12399c5-da8a-42f2-8176-6b6a3cc5d1ce"
},
Message_: "Invalid VPC ID. : RequestId: a12399c5-da8a-42f2-8176-6b6a3cc5d1ce",
RequestId: "a12399c5-da8a-42f2-8176-6b6a3cc5d1ce"
}
on .terraform\modules\ad\ad.tf line 1, in resource "aws_directory_service_directory" "my_microsoftad":
1: resource "aws_directory_service_directory" "my_microsoftad" {
Error: Error creating IAM Role ec2-ssm-role: EntityAlreadyExists: Role with name ec2-ssm-role already exists.
status code: 409, request id: d8fb8f3f-7d61-4a97-8355-242c11aab962
on .terraform\modules\ad\iam.tf line 7, in resource "aws_iam_role" "ec2-ssm-role":
7: resource "aws_iam_role" "ec2-ssm-role" {