public void Execute(Guid profileId) { IAwsClient awsClient; AwsProfile profile; if (!TryInitialize(profileId, out awsClient, out profile)) { return; } IEnumerable <AwsStack> stacks = awsClient.StackService.GetAllStacks(); foreach (AwsStack awsStack in stacks) { _stackLoader.LoadStack(awsClient, awsStack, profile.HostedZone, profileId); } }
public void Execute(Guid profileId, string stackName) { IAwsClient awsClient; AwsProfile profile; if (!TryInitialize(profileId, out awsClient, out profile)) { return; } // Search by name because AWS SDK can't search for a stack by resource ID Stack awsStack = awsClient.StackService.GetStack(stackName); if (awsStack == null) { return; } _stackLoader.LoadStack(awsClient, awsStack, profile.HostedZone, profileId); }