Documentation
¶
Overview ¶
Package legacyaws holds the read-only data and message formatters for the legacy AWS module + step types removed in issue #653. Lives in internal/ so that both module/ and modernize/ can import it without a cycle (module transitively imports modernize via plugin, so modernize cannot import module).
Index ¶
Constants ¶
const RemovedInVersion = "v0.53.0"
RemovedInVersion is the workflow tag that ships issue #653's force-cutover. Used in every legacy-AWS migration error and in the wfctl modernize rule.
Variables ¶
var ModuleTypes = map[string]string{
"platform.ecs": "infra.container_service",
"platform.networking": "infra.vpc + infra.firewall",
"platform.apigateway": "infra.api_gateway",
"platform.autoscaling": "infra.autoscaling_group",
}
ModuleTypes maps each removed legacy AWS module type to its infra.* IaC successor (issue #653).
var StepTypes = map[string]string{
"step.ecs_plan": "step.iac_plan (against an infra.container_service module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
"step.ecs_apply": "step.iac_apply (against an infra.container_service module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
"step.ecs_status": "step.iac_status (against an infra.container_service module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
"step.ecs_destroy": "step.iac_destroy (against an infra.container_service module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
"step.network_plan": "step.iac_plan (against an infra.vpc module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
"step.network_apply": "step.iac_apply (against an infra.vpc module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
"step.network_status": "step.iac_status (against an infra.vpc module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
"step.apigw_plan": "step.iac_plan (against an infra.api_gateway module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
"step.apigw_apply": "step.iac_apply (against an infra.api_gateway module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
"step.apigw_status": "step.iac_status (against an infra.api_gateway module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
"step.apigw_destroy": "step.iac_destroy (against an infra.api_gateway module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
"step.scaling_plan": "step.iac_plan (against an infra.autoscaling_group module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
"step.scaling_apply": "step.iac_apply (against an infra.autoscaling_group module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
"step.scaling_status": "step.iac_status (against an infra.autoscaling_group module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
"step.scaling_destroy": "step.iac_destroy (against an infra.autoscaling_group module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
}
StepTypes maps each removed legacy AWS step type to its successor.
Functions ¶
func FormatModuleError ¶
FormatModuleError builds the actionable migration error for a legacy AWS module type. iacProviderLoaded indicates whether the iac.provider factory is registered in the engine — used to branch between the "install plugin" and "config-only issue" messages.
func FormatStepError ¶
FormatStepError builds the actionable migration error for a legacy AWS step type.
func IsModuleType ¶
IsModuleType reports whether t is a removed legacy AWS module type.
func IsStepType ¶
IsStepType reports whether t is a removed legacy AWS step type.
Types ¶
This section is empty.