legacyaws

package
v0.55.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2026 License: MIT Imports: 3 Imported by: 0

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

View Source
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

View Source
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).

View Source
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

func FormatModuleError(legacyType, moduleName string, iacProviderLoaded bool) error

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

func FormatStepError(legacyType string, iacProviderLoaded bool) error

FormatStepError builds the actionable migration error for a legacy AWS step type.

func IsModuleType

func IsModuleType(t string) bool

IsModuleType reports whether t is a removed legacy AWS module type.

func IsStepType

func IsStepType(t string) bool

IsStepType reports whether t is a removed legacy AWS step type.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL