
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
cfn-response-async
Advanced tools
An async/await module for sending responses from lambda-funciton backed custom resources in AWS CloudFormation
Async / Await alternative to the cfn-response
module
Please Read The Documentation
The cfn-response
module can be tricky, it is sometimes injected automagically and sometimes not. For a full understanding, please read the documentation here.
Specifically pay attention to the following:
Note
The cfn-response module is available only when you use the ZipFile property to write your source code. It isn't available for source code that's stored in Amazon S3 buckets. For code in buckets, you must write your own functions to send responses.
If you notice the code here is out of sync with the latest, official version from Amazon, please send a pull request and link to where Amazon has posted the latest code.
$ npm install cfn-response-async
Sample usage:
import { CloudFormationCustomResourceEvent, Context } from 'aws-lambda';
import { send, SUCCESS } from 'cfn-response-async';
export const handler = async (event: CloudFormationCustomResourceEvent, context: Context) {
console.log('request:', JSON.stringify(event, undefined, 2));
await send(event, context, SUCCESS, {
Response: `Hello, async/await CustomResource`
});
};
Note: The example also assumes you've installed @types/aws-lambda
FAQs
An async/await module for sending responses from lambda-funciton backed custom resources in AWS CloudFormation
The npm package cfn-response-async receives a total of 9,301 weekly downloads. As such, cfn-response-async popularity was classified as popular.
We found that cfn-response-async demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.