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
0
votes
1 answer

how to create amazon ssm automated document,to use it for centralized patching from multiple accounts

As part of AWS system manager patching,we were planning to create centralized management patching to patch the servers from various regions and various accounts in aws. Multi account and region access set up was done using the below…
indu
  • 1
  • 1
0
votes
1 answer

How do you properly format the syntax in an AWS System Manager Document using downloadContent sourceInfo StringMap

My goal is to have an AWS System Manager Document download a script from S3 and then run that script on the selected EC2 instance. In this case, it will be a Linux OS. According to AWS documentation for aws:downloadContent the sourceInfo Input is of…
kupsand
  • 139
  • 2
  • 12
0
votes
1 answer

How to pass the AWS SSM output with powershell script

I was trying create a report for windows update as when the server get patched last also i am trying to combine the aws ssm out with the script i.e i fetch the instance details with aws ssm describe command and stored in a variable then i pass it in…
0
votes
2 answers

How can I use AWS-RunPowerShellScript on Windows to run a command that contains a space?

I'm trying to run a program on Windows using AWS Systems Manager (SSM) from some Java code. Here is the code: String commands = "C:\\Program Files\\MyProgram.exe --key1=value1"; SendCommandRequest commandRequest = new SendCommandRequest() …
Jesse Barnum
  • 6,507
  • 6
  • 40
  • 69
0
votes
1 answer

aws ssm register-task-with-maintenance-window reports error as Invalid JSON?

I am running the below command and it is reporting an error like Invalid JSON: AWS SSM Command: aws ssm register-task-with-maintenance-window --window-id mw-06344a0189162e0b3 --targets Key=WindowTargetIds,Values=ae5c621a-17d8-454f-977f-46298f1e6eb8…
learner
  • 2,480
  • 10
  • 50
  • 94
0
votes
0 answers

SSM state manager association is created even though the resource has it already

I want to make a script that checks for an EC2 instance if it has an existing association with the SSM document AWS-GatherSoftwareInventory, If not, create it. The aim is to have an association per instance so that we can gather information about…
Souad
  • 4,856
  • 15
  • 80
  • 140
0
votes
2 answers

CloudWatch Agent using SSM where instances are not showing in Managed Instances

I was trying to install SSM agent in Ec2 instances for which i have attached instance role with SSM full access,CloudwatchagentAdmin role,SSM managed Instance core.But i could see my instances in SSM console of Managed Instances. Anyone help ?…
0
votes
0 answers

how to get compliance report for SSM for all instances

How to get compliance report for all the servers in SSM. https://docs.aws.amazon.com/cli/latest/reference/ssm/list-compliance-items.html When i use the Boto3 library but there is only dictionary response for all the servers. This response not able…
crewy_stack
  • 530
  • 3
  • 14
0
votes
1 answer

ssm-agent trying to write to wrong region

When I execute aws SSM-Agent send-command on an instance, the SSM-Agent tries to write the results to an S3 bucket in another region. How do I specify what region the target S3 bucket is in? Here's the command and error I'm currently…
0
votes
0 answers

Unexpected token from Powershell when Run Via SSM in Python Script

I am sending a powershell script through AWS SSM like this: ssm_command_result = ssm.send_command( InstanceIds=listinst, …
0
votes
1 answer

ssm:resourceTag Cross Account Issues

I am using ssm:tag of documents to restrict access to users based on user role and document tag. I have added a condition to IAM policy and it's working. But when I try to do this with cross account, it's not working. 1) My SSM documents are in…
Tilak Puli
  • 73
  • 1
  • 3
0
votes
1 answer

Access denied to cross account S3 bucket when using QuickSight

Background I am working on a task to generate AWS QuickSight report in Account B from AWS Systems Manager Inventory data in the Account A S3 bucket (s3 sync). I have successfully added all the resource sync data in to cross account (Account A) S3…
Jiya
  • 225
  • 1
  • 6
  • 19
0
votes
1 answer

How to limit ssm documents accessible by a iam role for start automation using tags?

I have a iam role which has access to start automation. I want to limit the documents it can access by using tags. I have added this policy but it's not working. "Version": "2012-10-17", "Statement": [ { "Sid":…
Tilak Puli
  • 73
  • 1
  • 3
0
votes
2 answers

Access AWS System Manager Parameter Store with labels in cloudformation

For a single key, I have multiple values in history since parameter store maintains history. sample cloudformation script: Parameters: { "P1": { "Description": "parameter", "Type":…
0
votes
1 answer

How to know how many users are currently connected to the SQL Server

I want to know how many users are currently connected and accessing something from SQL Server? The current timing is very important in my scenario. I am using sys.sysprocessand sys.dm_exec_sessions tables from SQL Server.
Hope
  • 1
  • 1