Class LocalStackTemplateAdapter
java.lang.Object
com.cloudforgeci.localstack.LocalStackTemplateAdapter
- All Implemented Interfaces:
TemplateAdapter
Produces the explicitly-audited template deployed to LocalStack.
The input is always the canonical AWS template. LocalStack ALB supports forward/redirect/ fixed-response (not authenticate-*), so auth actions are stripped while ECS forward is kept. On Base-tier expectations, EFS and AWS Backup resources are adapted away (bind mounts / removed). Application Auto Scaling is left in place. Canonical AWS templates are unchanged.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TemplateAdaptationResultadapt(com.fasterxml.jackson.databind.node.ObjectNode canonicalTemplate) adapt(com.fasterxml.jackson.databind.node.ObjectNode canonicalTemplate, String stackName, LocalStackCapabilitySnapshot snapshot) Adapts using an explicit capability snapshot (tier-aware EFS/Backup handling).static TemplateAdaptationResultstatic TemplateAdaptationResultApplication URL from adapted template outputs, if present.booleanWhether a local auth runtime should be started after deploy.
-
Field Details
-
INSTANCE
-
OUTPUT_LOCAL_URL
- See Also:
-
OUTPUT_APPLICATION_URL
- See Also:
-
OUTPUT_ELB_HOSTNAME_URL
- See Also:
-
OUTPUT_AUTHENTICATED_URL
- See Also:
-
OUTPUT_HOST_VOLUME_PREFIX
- See Also:
-
-
Method Details
-
adapt
public TemplateAdaptationResult adapt(com.fasterxml.jackson.databind.node.ObjectNode canonicalTemplate, String stackName) - Specified by:
adaptin interfaceTemplateAdapter
-
adapt
public TemplateAdaptationResult adapt(com.fasterxml.jackson.databind.node.ObjectNode canonicalTemplate, String stackName, LocalStackCapabilitySnapshot snapshot) Adapts using an explicit capability snapshot (tier-aware EFS/Backup handling). -
requiresLocalAuthRuntime
Description copied from interface:TemplateAdapterWhether a local auth runtime should be started after deploy.- Specified by:
requiresLocalAuthRuntimein interfaceTemplateAdapter
-
applicationUrl
Description copied from interface:TemplateAdapterApplication URL from adapted template outputs, if present.- Specified by:
applicationUrlin interfaceTemplateAdapter
-
adapt
public static TemplateAdaptationResult adapt(com.fasterxml.jackson.databind.node.ObjectNode canonicalTemplate) -
adaptFile
public static TemplateAdaptationResult adaptFile(Path canonicalTemplate, Path localTemplate, Path report) throws IOException - Throws:
IOException
-
adaptFile
public static TemplateAdaptationResult adaptFile(Path canonicalTemplate, Path localTemplate, Path report, String stackName) throws IOException - Throws:
IOException
-