terraform-aws-modules / terraform-aws-dms

Terraform module to create AWS DMS (Database Migration Service) resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/dms/aws
Apache License 2.0
62 stars 94 forks source link

IAM Roles have hard-coded names, cannot apply module multiple times #11

Closed igoralveslima closed 2 years ago

igoralveslima commented 2 years ago

Describe the bug IAM resources have hard-coded names, which prevents users from applying this module multiple times in a single account

https://github.com/clowdhaus/terraform-aws-dms/blob/main/main.tf#L47 https://github.com/clowdhaus/terraform-aws-dms/blob/main/main.tf#L66

To Reproduce Steps to reproduce the behavior:

Expected behavior

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

bryantbiggs commented 2 years ago

yes, this is an AWS requirement. I will agree it is rather odd and there are numerous issues reported on this, but it is what is required by the AWS API in order for DMS to function properly - https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.APIRole

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.