Class MiniStackTemplateAdapter
java.lang.Object
com.cloudforgeci.ministack.MiniStackTemplateAdapter
- All Implemented Interfaces:
TemplateAdapter
Produces the explicitly-audited template deployed to MiniStack.
The input is always the canonical AWS template. MiniStack currently does not execute ALB authenticate-cognito/authenticate-oidc actions or EFS CloudFormation resources. EFS-backed task volumes are replaced with Docker host bind mounts so application data persists across local ECS task restarts. Those known divergences and their dependent local wiring are applied to a copy and recorded in the adaptation report; the canonical AWS template is unchanged.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MiniStackTemplateAdapterstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionstatic TemplateAdaptationResultadapt(com.fasterxml.jackson.databind.node.ObjectNode canonicalTemplate) 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_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
-
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
-