func (c *ClusterStateImpl) markUpdateInProgress(instanceId string) {
	c.updateInstanceState(instanceId, updateInProgress)
}
markUpdateInProgress updates the instance state to in-progress
package controllers
import (
	"sync"
	"github.com/aws/aws-sdk-go/service/autoscaling"
)
const (
	updateInitialized = "new"
	updateInProgress = "in-progress"
	updateCompleted = "completed"
)
type ClusterState interface {
	markUpdateInitialized(instanceId string)
	markUpdateInProgress(instanceId string)
	markUpdateCompleted(instanceId string)
	instanceUpdateInitialized(instanceId string) bool
	instanceUpdateInProgress(instanceId string) bool
	instanceUpdateCompleted(instanceId string) bool
	deleteAllInstancesInAsg(asgName string) bool
	getNextAvailableInstanceIdInAz(asgName string, azName string) string
	initializeAsg(asgName string, instances []*autoscaling.Instance)
	addInstanceState(instanceData *InstanceData)
	updateInstanceState(instanceId, instanceState string)
	getInstanceState(instanceId string) string
}
type InstanceData struct {
	Id            string
	AmiId         string
	AsgName       string
	AzName        string
	InstanceState string
}
type ClusterStateImpl struct {
	mu sync.RWMutex
	store sync.Map
}
func NewClusterState() ClusterState {
	return &ClusterStateImpl{}
}