Questions tagged [aws-ssm]

AWS Systems Manager (formerly Amazon EC2 Systems Manager) is a unified interface that allows you to easily centralize operational data and automate tasks across your AWS resources.

AWS Systems Manager is a agent that can be installed and run on EC2 instances allow has various capabilities like running commands on these EC2 instances, help push data to Cloudwatch etc. Do take a look at http://docs.aws.amazon.com/systems-manager/latest/userguide/what-is-systems-manager.html for more info.

645 questions
4
votes
1 answer

What is the best approach to wait and be notified of completion of SSM.SendCommand in AWS

I need to make a call from my website to an EC2 instance with an SSM's SendCommand. As I understand, dumping the result into an S3 bucket is the only option. My command is going to execute for some time (about a minute - two). The interface is…
4
votes
3 answers

How to retrieve earlier version of AWS SSM password?

I use the AWS parameter store like so aws ssm get-parameters --names WINDOWS_PASSWORD --with-decryption --query Parameters[0].Value --output text, but sometimes I need the earlier previous of the password when it rotates. I don't understand for…
hendry
  • 9,725
  • 18
  • 81
  • 139
4
votes
2 answers

Amazon Linux 2 instances won't appear in Systems Manager

I think I've done everything listed as a pre-req for this, but I just can't get the instances to appear in Systems Manager as managed instances. I've picked an AMI which i believe should have the agent in by default. ami-032598fcc7e9d1c7a PS…
bytejunkie
  • 1,003
  • 14
  • 30
4
votes
1 answer

Accessing AWS SSM Parameters in NodeJS Lambas

I am able to retrieve data from the AWS SSM Parameter Store locally in NodeJS but am unable to when I move my code to Lambdas. I've hunted and not found many examples of setting up Lambdas with NodeJS that aren't using the "Serverless" framework. I…
Josh Rodarte
  • 45
  • 1
  • 1
  • 3
4
votes
1 answer

AWS SSM error : UnexpectedParameter: Unexpected key 'CloudWatchOutputConfig'

I am using AWS Lambda to Run Command in SSM. This is the code: const AWS = require('aws-sdk') const ssm = new AWS.SSM() exports.handler = (event, context, callback) => { ssm.sendCommand({ DocumentName: "AWS-RunShellScript", …
4
votes
1 answer

AWS SSM describe-instance-information doesn't find my instances

I am using boto3 to control my EC2 instances on AWS from a python environment, using ec2 and ssm services. I have created an IAM account, that has access to AmazonSSMFullAccess and AmazonEC2FullAccess policies. ec2 = boto3.client( 'ec2', …
user6403833
  • 269
  • 5
  • 13
3
votes
1 answer

SSM agent fails working on EC2 post IDMSV2

I'm on a Windows server. I had to relaunch an instance from a snapshot of another instance that might have been in a different availability zone. One other change is that I've enabled imdsv2 on the EC2 by updating the launch configuration earlier…
Teh__docco
  • 155
  • 10
3
votes
1 answer

How can terminated instances be removed from AWS SSM's inventory?

I'm trying to remove terminated managed nodes from SSM's inventory, but couldn't find any way to do so through either the CLI or through an SDK. Currently, when I run the command aws ssm get-inventory the resulting list contains a lot of entries of…
3
votes
1 answer

How to update existing SSM Parameter with AWS CDK

I would like to update SSM Parameter using AWS CDK. My use case: In first stack I am creating SSM parameter. In the second stack want to update(change) it. One of solution that I came across was using lambda, and i would like to avoid it. Is the a…
3
votes
1 answer

What is the difference between an AWS Systems Manager Document of Type Automation and Command?

They seem to be serving the same purpose. They can both be broken down into steps, each step being a script. A Command or Automation document can also both be part of SSM Associations in the State Manager. So my question is simple. In which case…
cdesar78
  • 93
  • 5
3
votes
1 answer

How to pass AssumeRole and associate SSM Document with EC2 using Terraform

I am trying to associate an SSM Document (which joins a linux server with AD Domain) with an EC2 instance. I get the following error during association - aws_ssm_association.rhel: Creating... ╷ │ Error: Error creating SSM association:…
mellifluous
  • 2,345
  • 2
  • 29
  • 45
3
votes
1 answer

How to configure IAM role to enable SSM for a new EC2 instance?

I'm running the following: KEY=test QUERY=ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20210430 aws ec2 create-key-pair --key-name $KEY --query 'KeyMaterial' --output text > $KEY.pem chmod 600 $KEY.pem aws ec2 create-security-group…
Vadim Kantorov
  • 930
  • 1
  • 10
  • 28
3
votes
2 answers

how to export / post terraform output of variables to AWS SSM parameter store

I am trying to export/post variable outputs , resource ids after terraform apply command to AWS SSM parameter store to make the values available to AWS Lambda and other AWS services. Any suggestions will be appreciated. Thanks in advance.
PrakashS
  • 115
  • 2
  • 7
3
votes
2 answers

AWS - SSM Agent on Instances: [<>] are not functioning

I followed this tutorial in order to execute a shell command before an instance is terminated by ASG. But I keep getting this error when the SSM is trying to invoke the script Step timed out while step is verifying the SSM Agent availability on the…
3
votes
1 answer

Name an SSM parameter from a stack parameter within an SSM parameter name in AWS CDK

I have a CDK app with a CloudFormation Stack Parameter something like: project_name_param = cdk.CfnParameter( self, "ProjectName", default="MyCoolProject", ) Since multiple instances of this stack can be deployed, I'd like to create an…
dingus
  • 655
  • 1
  • 7
  • 18