fireflycons / PSCloudFormation

Easy CloudFormation deployments from PowerShell command line. Exports CloudFormation Stacks to Terraform
MIT License
6 stars 0 forks source link

Return status information from stack modification cmdlets #57

Closed fireflycons closed 4 years ago

fireflycons commented 4 years ago

Rather than returning stack ARN, we should return the last stack status (e.g. CREATE_COMPLETE), or a value NO_CHANGE if a changeset was not generated due to no actual changes. When a stack operation does result in a failure code, throw a custom exception that has the stack status as a property.

Add -PassThru switch to return stack ARN as before.

The above parameter should be placed in a parameter set with -Wait as it is meaningless in a no wait context, where the only sensible output is the ARN