862 questions
0 votes
0 answers
74 views
Can I use SSM to run command for SQL query execution on SQL Server RDS?
I want to automate a database drop and database restore process and I don't want to save my admin credentials in secret manager. I read somewhere we can use SSM Run commant for this. But SSM Run ...
0 votes
0 answers
64 views
AWS Lambda + SSM RunCommand returns stale GetLastInputInfo() timestamp on Windows EC2
I’m working on an AWS setup where I need to detect last user activity (keyboard/mouse input) on a Windows EC2 instance. Inside the instance, if I run this PowerShell snippet directly, it works ...
0 votes
0 answers
70 views
AWS SSM Sending JSON to powershell
I have some super-simple json I need to send to aws ssm start-session, in the parameters flag, but powershell refuses to accept it. I have tried tickmarks, double single quotes, backslashes with ...
0 votes
1 answer
52 views
aws:executeScript fails to fetch credentials
I am trying to access S3 from runbook's step 'aws:executeScript'. I get error: botocore.exceptions.NoCredentialsError: Unable to locate credentials Same Python code works when runbook invokes ...
0 votes
0 answers
91 views
How to set permissions for AWS automation documents?
I use AWS automation to stop all my machines. The document for automation is set up with Terraform. I want to restrict the usage of the document to my developer group. But I don't know, how to set the ...
0 votes
0 answers
28 views
AWS SSM in windows laptop get connection Lost
SSM Agent "Connection Lost" Issue on Local Laptops Overview: In our organization, we have ~30 employees using Windows laptops primarily for Amazon WorkSpaces. We installed the AWS SSM Agent ...
1 vote
1 answer
71 views
AWS SSM start-session works from web console but not from cli
On AWS there is ec2 vm deployed, which is accessible over SSM via web console. Everything works, profile is set and permissions are in place. But trying to connect from command line, with aws-cli ...
1 vote
1 answer
104 views
How to pass value from aws:runCommand to next step aws:RunCommand?
I have AWS SSM Automation document that consists of two steps. Both are of type aws:runCommand - PowerShell. First step creates Json data. Script ends with $tenantData = @{ Role =...
1 vote
1 answer
85 views
AWS: cannot connect to SSM from Lambda inside VPC
My Lambda is located in VPC (I can access Redis that is inside VPC), but I also need to access SSM - getParameter, but I get a timeout exception. Code: ※ It used to work until I put it inside the VPC. ...
0 votes
0 answers
46 views
How to print the value from a StringList parameter in an SSM Automation Document
I have a StringList parameter in a Runbook, and I want to assign it to a variable of type String. What is the best way to do this? I have tried many ways from the web, but all have failed. My problem ...
0 votes
0 answers
125 views
AWS CDK: Properly Parsing JSON-formatted SSM String Parameter for Lambda Configuration
Question: I'm using AWS CDK (v2) with TypeScript to configure Lambda functions using values stored in SSM String parameters with JSON format. While the parameter stores valid JSON, I'm having trouble ...
0 votes
0 answers
51 views
AWS-RunPacker SSM Document not working with base inputs
I am trying to use the default aws provided AWS-RunPacker SSM document. I have bucket with my packer hcl, some files I want to put on the box and my setup script. After troubleshooting I finally have ...
2 votes
0 answers
89 views
AWS EC2 in Private Subnet Not Appearing in SSM Session Manager [closed]
In aws I created a t3.nano aws-linux ec2 instance. Attached an instance profile with the following policies: - AmazonEC2RoleforSSM - AmazonSSMFullAccess - AmazonSSMManagedEC2InstanceDefaultPolicy - ...
0 votes
0 answers
145 views
How to Create an `aws_ssm_association` with Simple Execution in Terraform?
Issue I am trying to create an SSM Association with Simple Execution in Terraform. However, I am encountering issues: If I set automation_target_parameter_name, the execution changes to Rate Control ...
0 votes
0 answers
113 views
How to fetch AWS SSM parameter at startup in Quarkus Native Image without GraalVM build failure?
I am building a Quarkus application that runs as a native image with GraalVM. I need to fetch a decryption key from AWS Systems Manager (SSM) Parameter Store before the application starts, so I can ...