MCPcopy Create free account
hub / github.com/PRX/Infrastructure / getAllResolveParameters

Function getAllResolveParameters

spire/cd/src/parameter-capture/index.js:68–78  ·  view source on GitHub ↗

* Returns an object, where each key is the name of a parameter in Parameter * Store, and each value is the value of that parameter at the time * CloudFormation resolved it. This includes all Parameter Store-based stack * parameters for all stacks in the array being passed in. * @param {Stack[]}

(stacks)

Source from the content-addressed store, hash-verified

66 * @returns {Object}
67 */
68function getAllResolveParameters(stacks) {
69 return stacks
70 .reduce(
71 (acc, cur) => [...acc, ...cur.Parameters.filter((p) => p.ResolvedValue)],
72 [],
73 )
74 .reduce(
75 (acc, cur) => ({ ...acc, [cur.ParameterValue]: cur.ResolvedValue }),
76 {},
77 );
78}
79
80exports.handler = async (event, context) => {
81 const job = event['CodePipeline.job'];

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected