Documentation
¶
Index ¶
Constants ¶
const ( TargetIDMig = "com.steadybit.extension_gcp.mig" MigDeleteInstancesActionId = "com.steadybit.extension_gcp.mig.delete-instances" )
Variables ¶
This section is empty.
Functions ¶
func NewMigDeleteInstancesAction ¶
func NewMigDeleteInstancesAction() action_kit_sdk.Action[MigDeleteInstancesState]
func NewMigDiscovery ¶
func NewMigDiscovery() discovery_kit_sdk.TargetDiscovery
Types ¶
type MigDeleteInstancesState ¶
type MigDeleteInstancesState struct {
ProjectID string
Scope string // "zonal" or "regional"
Location string // zone (e.g. us-central1-a) or region (e.g. us-central1)
MigName string
Percentage int
Instances []string
}
MigDeleteInstancesState holds the sampled instance URLs to recreate on Start. This attack calls the MIG's RecreateInstances API — the target VMs are deleted and replaced from the current instance template. Unlike DeleteInstances, RecreateInstances preserves the MIG's targetSize, so an autoscaler-free MIG (like a fixed-size stateful pool) doesn't stay undersized after the attack. The VMs get new hardware identity (new instance IDs, boot times) but keep their names and any stateful-policy state.