Closed mrobinson1022 closed 8 months ago
@bryantbiggs Please let me know if you need any further info, thanks!
Chiming in to say I've encountered this issue as well, all required roles are already created in our account and our IAM policies do not allow recreation or modification, so we want to skip the creation, however we are unable to proceed because of this error.
Would it perhaps be an option to change the module to accept already existing resources, so we can specify them as variables? I've searched on how to do this but can only find terraform import, which is not an option for us since company policy prohibits us from managing default IAM roles.
Feel free to pull and host my fork until this gets some attention @ThaDanus
Just use
create_iam_roles = false
create_access_iam_role = false
access_iam_role_use_name_prefix = false
create_access_policy = false
Yip after some discussion our way forward is to use your bugfixes, works perfectly! Hopefully it will be officially updated soon so we can remove the local clone again.
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
Still waiting for an official fix for this
This issue has been resolved in version 2.0.1 :tada:
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.
Description
Version 2.0.0 of the module defaults to creating an access iam role which is used in lookups() within the aws_dms_endpoints.this resource. However, with
create_access_iam_role = false
andcreate_access_policy = false
plans fail due toaws_iam_role.access[0].arn is an empty tuple
. As this attribute is an optional value in the resource, setting these to false should not cause the plan to fail (except in the case of elasticsearch where it is required)Versions
Module version [Required]: 2.0.0
Terraform version: 1.5.7
Provider version(s): 1.5.7
Reproduction Code [Required]
Steps to reproduce the behavior:
Execute a plan with:
Expected behavior
Plan should succeed as no requirements are missing.
Actual behavior
Plan fails for
aws_iam_role.access[0].arn is an empty tuple