Skip to content

Add a stack.json file #115

Open
Open

Description

@gkpty

the stack.json file will contain all of the resources and their respective physical resource IDs.

use the following method at the end of the stack deployment.

var params = {
  StackName: 'STRING_VALUE', /* required */
  NextToken: 'STRING_VALUE'
};
cloudformation.listStackResources(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else  {
     for(let resource in data.StackResourceSummaries) console.log(resource.PhysicalResourceId)
  }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions