Update resource type for SQS and SNS (#1747)

This commit is contained in:
Vaibhav Bagaria
2023-01-23 20:22:26 +11:00
committed by GitHub
parent afd0c56b44
commit 2278565b86

View File

@@ -139,6 +139,10 @@ def create_inventory_table(resources: list) -> dict:
if service == "s3": if service == "s3":
resource_type = "bucket" resource_type = "bucket"
elif service == "sns":
resource_type = "topic"
elif service == "sqs":
resource_type = "queue"
else: else:
resource_type = resource.split(":")[5].split("/")[0] resource_type = resource.split(":")[5].split("/")[0]
if service not in resources_type: if service not in resources_type: