npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mskutin/pulumi-signal-waiter

v0.1.0

Published

A reusable Pulumi component that blocks stack execution until a bootstrap signal message is received from an AWS SQS queue. Ideal for coordinating asynchronous resource initialization (e.g., EC2 bootstrap completion) without relying on CloudFormation cfn-

Readme

📦 pulumi-signal-waiter

npm version CI/CD Pipeline Code Quality License: MIT Pulumi Node.js

A reusable Pulumi component that blocks stack execution until a bootstrap signal message is received from an AWS SQS queue. Ideal for coordinating asynchronous resource initialization (e.g., EC2 bootstrap completion) without relying on CloudFormation cfn-signal or external Terraform providers.


🚀 Features

  • ✅ Pulumi-native alternative to cfn-signal
  • ✅ Works in any Pulumi AWS project (TypeScript or JavaScript)
  • ✅ Models "readiness dependencies" between resources
  • ✅ Configurable timeout and region
  • ✅ Zero external binaries or tools required

📦 Installation

npm install @mskutin/pulumi-signal-waiter

🛠️ Usage

1️⃣ Add SignalWaiter to Your Pulumi Stack

import * as aws from "@pulumi/aws";
import { SignalWaiter } from "@mskutin/pulumi-signal-waiter";

// Create SQS queue for signal
const queue = new aws.sqs.Queue("bootstrapSignalQueue", {
    messageRetentionSeconds: 300,
});

// EC2 instance sends message to SQS after bootstrap
const instance = new aws.ec2.Instance("appInstance", {
    ami: "ami-0c55b159cbfafe1f0",
    instanceType: "t3.micro",
    userData: #! / bin / bash echo "Bootstrapping..." sleep 60 aws sqs send - message--queue - url ${ queue.id } --message - body "ready" --region ${ aws.config.region },
    iamInstanceProfile: new aws.iam.InstanceProfile("sqsAccessProfile", {
        role: new aws.iam.Role("sqsRole", {
            assumeRolePolicy: aws.iam.assumeRolePolicyForPrincipal({ Service: "ec2.amazonaws.com" }),
            managedPolicyArns: ["arn:aws:iam::aws:policy/AmazonSQSFullAccess"],
        }),
    }),
});

⚙️ How It Works

  1. Your EC2 (or other resource) sends a message to SQS when it’s fully configured.
  2. SignalWaiter polls SQS every 10 seconds until it sees a message or times out.
  3. Pulumi pauses deployment of dependent resources until the signal arrives.
  4. The message is deleted from the queue to avoid re-processing.

📖 Parameters

| Parameter | Type | Default | Description | | --------------------- | ----------------------- | ------------------ | ----------------------------------------------------- | | queueUrl | pulumi.Input<string> | required | The AWS SQS Queue URL to listen on. | | region | pulumi.Input<string> | current AWS region | Region where the queue exists. | | timeoutMs | pulumi.Input<number> | 300000 | Maximum wait time in milliseconds before failing. | | pollIntervalSeconds | pulumi.Input<number> | 10 | Polling interval in seconds (1-20 seconds). | | requiredSignalCount | pulumi.Input<number> | 1 | Number of signals required before completing (1-100). | | deleteMessages | pulumi.Input<boolean> | true | Whether to delete messages after receiving them. |


💡 Use Cases

  • EC2 AutoScaling lifecycle hooks: wait for instance bootstrap before attaching to ELB.
  • Multi-instance coordination: wait for N-of-M instances to signal readiness.
  • Database migrations: pause until an external script signals readiness.
  • Complex orchestration: enforce async order without hacks or cfn-signal.
  • Blue/green deployments: coordinate between old and new infrastructure.
  • Container orchestration: wait for multiple containers to be healthy.

✅ Advantages Over cfn-signal and custom wrappers

  • Works without CloudFormation or AWS-specific signaling helpers.
  • Cross-language, fully supported in Pulumi ecosystem.
  • Uses standard AWS primitives (SQS), no custom binaries required.
  • Lightweight and testable in isolation.

🏗️ Roadmap

  • [ ] Add SNS / HTTP webhook signal support
  • [x] Support for multiple messages (e.g., N-of-M signals)
  • [ ] Python version of the component
  • [ ] Packaged as official Pulumi ComponentResource

📜 License

MIT License – feel free to use and adapt.


🔗 Links

  • Pulumi Documentation: https://www.pulumi.com/docs/
  • AWS SQS Documentation: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/welcome.html
  • cfn-signal reference (for comparison): https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-signal.html