Closed cdowney closed 2 years ago
Hey Cory, thanks for contributing. I like the changes you've made and just had a small thing I wanted to tweak which required I open a new branch so I'm closing this PR in favor of #163 which has all of these changes in it. Since I added some code myself I'll get one of my teammates to review so that we can merge it in
Hey Cory, thanks for contributing. I like the changes you've made and just had a small thing I wanted to tweak which required I open a new branch so I'm closing this PR in favor of #163 which has all of these changes in it. Since I added some code myself I'll get one of my teammates to review so that we can merge it in
No problem, thank you!
This will add validation for
name
andname_prefix
on thealks_iamrole
andalks_iamtrustrole
resources.The for
name
, validations include: 1)name
value length is <= 64 characters 2)name
value matches the regex in AWS docsThe for
name_prefix
, validations include: 1)name_prefix
value + unique suffix length is <= 64 2)name_prefix
value matches the regex in AWS docsAdding in this validation will ensure that IAM role naming issues are caught during the
tf plan
rather than duringtf apply
.