Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Commit 0688e84

Browse files
committed
IaC:added fallback plugin for pro,fixed comments
1 parent 92e58e9 commit 0688e84

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

localstack-core/localstack/utils/catalog/catalog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ def __init__(self, remote_catalog_loader: RemoteCatalogLoader | None = None) ->
9494
service_provider.operations
9595
)
9696

97-
self.cfn_resources_in_latest = AwsCatalogRemoteStatePlugin.get_cfn_resources_catalog(
97+
self.cfn_resources_in_latest = self.get_cfn_resources_catalog(
9898
remote_catalog.cloudformation_resources
9999
)
100100
self.cfn_resources_at_runtime = set(cfn_plugin_manager.list_names())
101-
self.services_at_runtime = AwsCatalogRemoteStatePlugin.get_aws_services_at_runtime()
101+
self.services_at_runtime = self.get_aws_services_at_runtime()
102102

103103
def get_aws_service_status(
104104
self, service_name: str, operation_name: str | None = None

localstack-core/localstack/utils/catalog/plugins.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ def get_aws_catalog() -> CatalogPlugin:
2121
"Failed to load catalog plugin with the latest LocalStack services support data, falling back to catalog without remote state: %s",
2222
e,
2323
)
24-
return plugin_manager.load("aws-catalog-runtime-only")
24+
# Try to load runtime catalog from pro version first
25+
fallback_plugin_name = "aws-catalog-runtime-only-with-license"
26+
if not plugin_manager.exists(fallback_plugin_name):
27+
fallback_plugin_name = "aws-catalog-runtime-only"
28+
return plugin_manager.load(fallback_plugin_name)

0 commit comments

Comments
 (0)