Skip to content
Discussion options

You must be logged in to vote

Hi,
I went for the action solution and with a bit of help from chatGTP, Here is my solution (if this can help someone...)

console.log("Listing stacks…\n");

const stacks = await komodo.read("ListStacks", {
  query: {},
});

if (!stacks || stacks.length === 0) {
  console.log("No stacks found.");
  return;
}

console.log(`Found ${stacks.length} stack(s):\n`);
for (const s of stacks) {
  console.log("- " + s.name);
}
console.log();


console.log("Setting 'poll_for_updates' to true on each stack…\n");

for (const s of stacks) {
  try {
    await komodo.write("UpdateStack", {
      id: s.id,                     // utilise l'ID interne
      config: {
        poll_for_updates: true,     // _Pa…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by redge76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants