Closed Zonny closed 1 year ago
Same problem here. Had to pass the ami using ami_ssm_parameter
instead of ami
as a workaround.
This issue has been resolved in version 5.3.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.
Hello,
I am recently trying to use this module and ran into this issue
It seems like it might be due to merging this PR. The reason I believe is that the ami variable is always getting set to null because
data.aws_ssm_parameter.this[0].value
cannot be referenced. I removed the try block locally and get this error messageI opened up a PR to address the issue. Let me know if it is acceptable or if changes will need to be required
Originally posted by @Zonny in https://github.com/terraform-aws-modules/terraform-aws-ec2-instance/issues/351#issuecomment-1681153268