Socket
Socket
Sign inDemoInstall

@aws-sdk/client-cloudformation

Package Overview
Dependencies
Maintainers
5
Versions
405
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-cloudformation

AWS SDK for JavaScript Cloudformation Client for Node.js, Browser and React Native


Version published
Weekly downloads
1.3M
increased by0.01%
Maintainers
5
Weekly downloads
 
Created

What is @aws-sdk/client-cloudformation?

The @aws-sdk/client-cloudformation npm package is a client library for AWS CloudFormation service. It allows developers to interact with the AWS CloudFormation service programmatically, enabling them to create, manage, and deploy AWS CloudFormation stacks and resources directly from their JavaScript or TypeScript applications.

What are @aws-sdk/client-cloudformation's main functionalities?

Managing Stacks

This feature allows you to manage AWS CloudFormation stacks, including creating, updating, and deleting stacks.

const { CloudFormationClient, CreateStackCommand } = require('@aws-sdk/client-cloudformation');

const client = new CloudFormationClient({ region: 'us-west-2' });
const createStackParams = {
  StackName: 'MyStack',
  TemplateBody: 'JSON or YAML template',
};

const command = new CreateStackCommand(createStackParams);
client.send(command).then((data) => {
  console.log('Stack creation initiated:', data);
}).catch((error) => {
  console.error('Error creating stack:', error);
});

Describing Stack Resources

This feature allows you to retrieve information about the resources within a specific stack.

const { CloudFormationClient, DescribeStackResourcesCommand } = require('@aws-sdk/client-cloudformation');

const client = new CloudFormationClient({ region: 'us-west-2' });
const describeStackResourcesParams = {
  StackName: 'MyStack'
};

const command = new DescribeStackResourcesCommand(describeStackResourcesParams);
client.send(command).then((data) => {
  console.log('Stack resources:', data);
}).catch((error) => {
  console.error('Error describing stack resources:', error);
});

Listing Stacks

This feature allows you to list all stacks and their statuses in your AWS account.

const { CloudFormationClient, ListStacksCommand } = require('@aws-sdk/client-cloudformation');

const client = new CloudFormationClient({ region: 'us-west-2' });
const command = new ListStacksCommand({});
client.send(command).then((data) => {
  console.log('List of stacks:', data);
}).catch((error) => {
  console.error('Error listing stacks:', error);
});

Other packages similar to @aws-sdk/client-cloudformation

FAQs

Package last updated on 10 Sep 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc