Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-cdk/aws-ssm

Package Overview
Dependencies
Maintainers
5
Versions
288
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-cdk/aws-ssm

The CDK Construct Library for AWS::SSM

  • 1.36.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
100K
decreased by-20.74%
Maintainers
5
Weekly downloads
 
Created

What is @aws-cdk/aws-ssm?

@aws-cdk/aws-ssm is an AWS Cloud Development Kit (CDK) library that allows you to interact with AWS Systems Manager (SSM) services. It provides constructs for defining and managing SSM parameters, documents, and associations within your CDK applications.

What are @aws-cdk/aws-ssm's main functionalities?

Create SSM Parameter

This feature allows you to create a new SSM parameter. The code sample demonstrates how to create a string parameter named 'myParameter' with the value 'myValue'.

const ssm = require('@aws-cdk/aws-ssm');
const cdk = require('@aws-cdk/core');

const app = new cdk.App();
const stack = new cdk.Stack(app, 'MyStack');

new ssm.StringParameter(stack, 'MyParameter', {
  parameterName: 'myParameter',
  stringValue: 'myValue',
});

app.synth();

Retrieve SSM Parameter

This feature allows you to retrieve an existing SSM parameter. The code sample demonstrates how to retrieve a string parameter named 'myParameter' and log its value.

const ssm = require('@aws-cdk/aws-ssm');
const cdk = require('@aws-cdk/core');

const app = new cdk.App();
const stack = new cdk.Stack(app, 'MyStack');

const parameter = ssm.StringParameter.fromStringParameterName(stack, 'MyParameter', 'myParameter');

console.log(parameter.stringValue);

Create SSM Document

This feature allows you to create a new SSM document. The code sample demonstrates how to create a document with a shell script that echoes 'Hello World'.

const ssm = require('@aws-cdk/aws-ssm');
const cdk = require('@aws-cdk/core');

const app = new cdk.App();
const stack = new cdk.Stack(app, 'MyStack');

new ssm.CfnDocument(stack, 'MyDocument', {
  content: JSON.stringify({
    schemaVersion: '2.2',
    description: 'My SSM Document',
    mainSteps: [
      {
        action: 'aws:runShellScript',
        name: 'exampleStep',
        inputs: {
          runCommand: ['echo Hello World']
        }
      }
    ]
  }),
  documentType: 'Command'
});

app.synth();

Other packages similar to @aws-cdk/aws-ssm

Keywords

FAQs

Package last updated on 28 Apr 2020

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