MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / extractStackOutputs

Method extractStackOutputs

internal/deploy/stack.go:276–298  ·  view source on GitHub ↗
(stack *cloudformation.Stack)

Source from the content-addressed store, hash-verified

274}
275
276func (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
300func (s *StackDeployer) getFullStackName() string {
301 return s.cfg.Deployment.StackName

Callers 1

GetStackOutputsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected