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

Send multiple lines of script to EC2 instance from PowerShell SSM cmdlets

I have this example from AWS sites: Send-SSMCommand -DocumentName "AWS-RunPowerShellScript" -Parameter @{commands = "echo helloWorld"} -Target @{Key="instanceids";Values=@("i-0cb2b964d3e14fd9f")} in which one line of PowerShell script (echo…
Rohit Singh
  • 47
  • 2
  • 10
0
votes
1 answer

Pushing AMI ID's to SSM inline bash script

I'm trying to use a local shell processor script at the end of our Packer build that gets the latest AMI ID and then pushes this to a specific SSM param. So far I can get the latest AMI without issue doing AWS_PROFILE=myprofile…
Time Keeper
  • 51
  • 1
  • 3
0
votes
1 answer

Python: How do I compare two sets containing strings and replace one value with the other if they are not equal?

I am writing a python script to create/update/delete values in AWS SSM parameter store. My current logic is: def lambda_handler(event, context): logger.info(event)#removing tab files = get_local_files() #set of all application.properties…
nehacharya
  • 925
  • 1
  • 11
  • 31
0
votes
1 answer

Amazon SSM Agent not syncing a log starting with empty line

I have a Windows EC2 machine running legacy software and a need to sync file logs from it to CloudWatch. Relevant configuration in AWS.EC2.Windows.CloudWatch.json is as follows: ... { "FullName":…
Krule
  • 6,468
  • 3
  • 34
  • 56
0
votes
1 answer

Install AWS SSM Agent to on promise VM

AWS SSM added support for on promise VM recently. When following the user guide, I am a bit lost on "Step 3: Install a TLS certificate on On-Premises Servers and VMs". It states that: On base operating systems, on instances created from AMIs that…
Tony
  • 3
  • 1
0
votes
2 answers

Setting SSM parameter as an Environment variable for EC2 - Does not work

I am trying to get and export an SSM parameter as an environment variable to an EC2 using the UserData section of Cloudformation. The script is trying to append for e.g export WHATS_HER_NAME=Sherlyn to the /etc/profile file. But all i see in the…
Arun Kamalanathan
  • 8,107
  • 4
  • 23
  • 39
0
votes
1 answer

SSM - AWS-RunPowerShellScript - $false boolean erroneously being recognized as String

I'm trying to utilize this document in SSM to remove a computer object from Active Directory when it's triggered by a lambda function. I can not get it to recognize the $false boolean as needed to make the -Confirm parameter work as needed. It's…
0
votes
1 answer

Run command wirth SSM in Lambda function with python

I wrote python code in lambda for run command from SSM but i had error the error Response: { "errorMessage": "2019-11-26T10:51:09.649Z d6a9aff6-9da9-477c-82b4-100d96a316fe Task timed out after 3.00 seconds" } Request…
reham adel
  • 359
  • 1
  • 5
  • 14
0
votes
1 answer

Getting data from AWS SSM Parameter Store in ruby script using aws-sdk-v1

I'm trying to get the secrets from SSM Parameter store. The issue is we're on aws-sdk-v1 (ruby). For V2, V3 I can get plenty of examples, but not for V1. e.g. code snippet for aws-sdk--v2. ssm_client = Aws::SSM::Client.new( region: region …
Amit
  • 229
  • 5
  • 20
0
votes
1 answer

AWS CLI can access s3 but not other resources

Im trying to invoke s3 and ssm commands using an EC2 instance. For aws s3api list-buketes,it returns list of names. But for aws ssm get-parameter --name "Customer" it times out. I have attached a profile with admin access to the EC2 instance. But it…
mumbo_s5
  • 161
  • 1
  • 14
0
votes
1 answer

An error occurred when attempting to search Windows Update

I use SSM document AWS-RunPatchBaseline to patch my windows servers. while trying to run it, I had this error with one of my servers: Invoke-PatchBaselineOperation : Exception Details: An error occurred when attempting to search Windows…
Souad
  • 4,856
  • 15
  • 80
  • 140
0
votes
1 answer

Why the druid cannot decode the password

if change the ${druid.password} to my database password everything is well done if druid not decode the password? my…
CRUDTest
  • 3
  • 2
0
votes
1 answer

Lambda Python to Query SSM Parameter Store - get value is failing

I couldn't get the value of my parameter. I'm working with a lambda in Python. ssm =boto3.client('ssm') def eslam(event, context): parameters = ssm.get_parameters( Names=[ '/dev/es/ad-es-to-s3', ], …
csegovia
  • 93
  • 1
  • 10
0
votes
2 answers

Use Systems Manager to Run AWS CLI Commands on Windows EC2 Instance

Currently I'm trying to use Systems Manager to execute AWS CLI commands on an EC2 instance. I would like for Systems manager to run the below: aws s3 cp s3:// But when I run it through the…
Franchise
  • 1,081
  • 3
  • 15
  • 30
0
votes
1 answer

"isEnd":true - does not stop workflow as expected in JSON AWS SSM Automation Doc

I have an AWS SSM automation document with 20 steps. I have the last two steps (19 & 20) setup with "isEnd":true statements but they are not executing as expected. Step 19 should execute this and not move on to step 20 if step 19 succeeds. What is…
TIM02144
  • 593
  • 1
  • 4
  • 17