Questions tagged [ssm]

Use this tag when your question has to be with problems or doubts about the AWS Systems Manager product.

AWS Systems Manager is a collection of capabilities for configuring and managing Amazon EC2 instances, on-pr.emises servers and virtual machines, and other AWS resources at scale.

Systems Manager gives you a complete view of your infrastructure performance and configuration, simplifies resource and application management, and makes it easy to operate and manage infrastructures.

More information can be found in the AWS help center

168 questions
2
votes
1 answer

how to access SSM params from CodePipeline

In my samTemplate I have some parameters defined so in my CodePipeline (CloudFormation step) I would like to override those params with SSM values. How can I do this?
1
vote
1 answer

In AWS, how do I configure SSM for an instance joined to an AWS AD Domain in a Private Subnet?

I am trying to set up SSM on Windows. I have an ASG in a private subnet (absolutely 0 internet access). I can not use NAT, only VPC endpoints. In the instance launch configuration, I have a PowerShell script that uses Set-DnsClientServerAddress so…
1
vote
1 answer

Deleting expired AWS Hybrid Activations

The following code is based off of the boto3 / API documentation, it prints what should be deleted but doesn't delete the Hybrid activation, nor does it create an error. Can you help me determine why the activations aren't being deleted. import…
jmoorhead
  • 393
  • 1
  • 4
  • 19
1
vote
0 answers

How to use boto3 ssm client to create port-forwarding session?

I used the python code below to create a port-forwarding session. But it seems like the session is getting terminated in a few minutes? Can anyone tell me if I am missing something here. My target is to bind a remote port (80) to a local port…
1
vote
0 answers

CloudWatch agent error log - metrics are not showing up in console

I installed the cloudwatch agent in EC2 instance with proper roles attached to it. As i see in command line,the cloudwatch agent was running and but i don't see metrics being collected and showed up in GUI. I checked the log file.This is how it is…
Roja Sree
  • 29
  • 3
1
vote
1 answer

AWS System Manager (SSM) get-command-invocation results in InvalidPluginName

I've been able to successfully send a SSM command to an EC2 instance. Here is the Python Lambda code I'm using: # System Manager send_command response = ssm_client.send_command( …
kupsand
  • 139
  • 2
  • 12
1
vote
0 answers

Execute SSM documents using boto3 aws multi account support

I was implementing centralized multi-account patching with AWS Systems Manager Automation. When operating in the console and using the "Automations" section of the SSM, you can indeed point to multiple accounts assuming you have correct role passing…
cloudbud
  • 2,948
  • 5
  • 28
  • 54
1
vote
0 answers

Install AWS SSM Agent on multiple EC2 instances using Ansible

I have a requirement where I have to install AWS SSM Agent on multiple EC2 instances(of different flavors) using Ansible. Can someone please help me? or Suggest me how to achieve this? I wrote the following script and tried. It is working but, is…
ram n
  • 49
  • 6
1
vote
1 answer

GetParameter VS GetParameters

What is the difference between AWS SSM GetParameter and GetParameters ? I have a machine with an IAM policy GetParameters and try to read a variable with terraform with the following code: data "aws_ssm_parameter" "variable" { name = "variable"} I…
said
  • 53
  • 1
  • 4
1
vote
1 answer

AWS SSM RunCommand - Issue with RunRemoteScript Document to run PowerShell script with parameters

In AWS SSM, I use RunRemoteScript document to run a PowerShell script to install some software on SSM managed instances. The script is hosted in a public accessible S3 bucket. The RunCommand works fine with the script not taking any parameters.…
Tomking Chen
  • 343
  • 3
  • 17
1
vote
3 answers

Amazon Systems Manager alternative on GCP

Is there a solution/service available on GCP in similar lines of Systems Manager? My end goal is to run a shell script on GCP VM on specific events. Like for AWS, via EventBridge I was able to trigger a Lambda Function and the function in turn…
1
vote
1 answer

AWS SSM get-parameter-by-path Manipulate JSON

I am trying to retrieve all the parameters under a specific path from the AWS Parameter store using the command below: aws ssm get-parameters-by-path --path some-path --no-paginate This returns me a JSON with a lot of fields I do not need. How can…
Rachit Anand
  • 616
  • 5
  • 16
1
vote
1 answer

Unable to print the second field using awk filter passing in an AWS SSM Command

I am trying to get the details from the AWS SSM Parameter store. I have the data stored for which the value in SSM parameter store like this: CompanyName\credits Please find the SSM command executed through AWS CLI, the output is as follows: aws ssm…
karthik
  • 417
  • 1
  • 7
  • 15
1
vote
2 answers

How to add Cloudwatch output to runShellScript document on an EC2?

I have a python script on an EC2 which needs to run daily without anyone manually kicking it off. My current setup uses a scheduled Lambda function to send an SSM Document as a command to the EC2. The SSM Document includes a short "runShellScript"…
1
vote
2 answers

AWS SSM Run command : use the current account number from a Cloudformation Template

I have a CloudFormation template that create a set of SSM commands to manage my Linux EC2 instances. This commands must have access to my AWS account number to do some tasks. On my CloudFormation template, I did : AWSTemplateFormatVersion:…
JayMore
  • 642
  • 6
  • 20