in Editor/Window/Containers/ConfigureCGDStep.cs [99:155]
protected void PollResourceStatus()
{
if (!_stateManager.IsCGDDeploying)
{
return;
}
GetCGDStatus();
var stackStatus = _deploymentSettings.CurrentStackInfo.StackStatus;
if (stackStatus == null)
{
_statusIndicator.Set(State.Inactive, _textProvider.Get(Strings.ManagedEC2DeployStatusNotDeployed));
}
else if (stackStatus.IsStackStatusInProgress())
{
if (_cgdStatus == null)
{
_statusIndicator.Set(State.Inactive, _textProvider.Get(Strings.ManagedEC2DeployStatusNotDeployed));
}
else if (_cgdStatus == ContainerGroupDefinitionStatus.COPYING)
{
_statusIndicator.Set(State.InProgress, _textProvider.Get(Strings.ManagedEC2DeployStatusDeploying));
}
else if (_cgdStatus == ContainerGroupDefinitionStatus.READY)
{
_statusIndicator.Set(State.Success, _textProvider.Get(Strings.ManagedEC2DeployStatusDeployed));
CompleteCreateCGD();
}
}
else if (stackStatus.IsStackStatusRollback() || stackStatus.IsStackStatusFailed())
{
_statusIndicator.Set(State.Failed, _textProvider.Get(Strings.ManagedEC2DeployStatusFailed));
if (_cgdStatus == null)
{
FailStep(StatusBox.StatusBoxType.Error, "Resource creation failed. Rolled back.");
}
else if (_cgdStatus == ContainerGroupDefinitionStatus.FAILED)
{
FailStep(StatusBox.StatusBoxType.Error, "Group Definition creation failed. Rolled back.");
}
else
{
FailStep(StatusBox.StatusBoxType.Error, "Resource creation failed. Rolled back.");
}
}
else if (stackStatus.IsStackStatusOperationDone())
{
_statusIndicator.Set(State.Success, _textProvider.Get(Strings.ManagedEC2DeployStatusDeployed));
CompleteCreateCGD();
}
else
{
_statusIndicator.Set(State.Inactive, _textProvider.Get(Strings.ManagedEC2DeployStatusNotDeployed));
}
}