| 274 | } |
| 275 | |
| 276 | func (s *StackDeployer) extractStackOutputs(stack *cloudformation.Stack) *StackOutput { |
| 277 | output := &StackOutput{ |
| 278 | StackName: *stack.StackName, |
| 279 | StackStatus: *stack.StackStatus, |
| 280 | CreationTime: stack.CreationTime, |
| 281 | LastUpdatedTime: stack.LastUpdatedTime, |
| 282 | } |
| 283 | |
| 284 | for _, stackOutput := range stack.Outputs { |
| 285 | if stackOutput.OutputKey == nil || stackOutput.OutputValue == nil { |
| 286 | continue |
| 287 | } |
| 288 | |
| 289 | switch *stackOutput.OutputKey { |
| 290 | case "CoordinationBucketName": |
| 291 | output.CoordinationBucketName = *stackOutput.OutputValue |
| 292 | case "LambdaExecutionRoleArn": |
| 293 | output.LambdaExecutionRoleArn = *stackOutput.OutputValue |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | return output |
| 298 | } |
| 299 | |
| 300 | func (s *StackDeployer) getFullStackName() string { |
| 301 | return s.cfg.Deployment.StackName |