inkdrop-org / inkdrop-visualizer

Visualizes your Terraform
https://inkdrop.ai/
Mozilla Public License 2.0
444 stars 16 forks source link

Unknown block type #5

Closed tknisch closed 4 months ago

tknisch commented 5 months ago

Hey,

is it possible, that (nested) modules are not supported?

Most of our code is separated by modules and I'm only getting these warnings and the svg is nearly empty:

Computing raw graph...
Processing raw graph...
WAR Unknown block type module.vanity_url.aws_acm_certificate.url
WAR Unknown block type module.vanity_url.aws_acm_certificate_validation.url
WAR Unknown block type module.vanity_url.aws_route53_record.url
WAR Unknown block type module.vanity_url.aws_route53_record.validation_url
WAR Unknown block type module.vanity_url.data.aws_route53_zone.this
WAR Unknown block type module.acm.aws_acm_certificate.this
WAR Unknown block type module.acm.aws_route53_record.certvalidation
WAR Unknown block type module.backup.aws_backup_plan.default_1yr
WAR Unknown block type module.backup.aws_backup_plan.default_35days
WAR Unknown block type module.backup.aws_backup_plan.default_7days
WAR Unknown block type module.backup.aws_backup_selection.default-35days-tags
WAR Unknown block type module.backup.aws_backup_selection.default-7days-tags
WAR Unknown block type module.backup.aws_backup_selection.default-tags-1
WAR Unknown block type module.backup.aws_backup_selection.default-tags-2
WAR Unknown block type module.backup.aws_backup_vault.default_vault
WAR Unknown block type module.cloudtrail.aws_cloudtrail.regional
WAR Unknown block type module.cloudtrail.aws_cloudwatch_log_group.cloudtrail
WAR Unknown block type module.cloudwatch.aws_cloudwatch_log_group.ec2
WAR Unknown block type module.cloudwatch.aws_cloudwatch_log_group.ec2_patchmanagement
albschi commented 5 months ago

Hey, thanks for reporting! Yes, you are right. Nested modules are not supported yet, and I'm currently implementing a solution.

I'll keep you posted.

albschi commented 5 months ago

Hi! In the latest release, I have introduced support for nested modules, which should now function correctly. However, I haven't had the opportunity to thoroughly test the interactions between variables and outputs within nested modules. If you are aware of any open-source AWS projects utilizing nested modules, sharing them would be greatly appreciated. :)