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

How to define and use at the same time a SSM parameter in CloudFormation?

Here is a SAM template (same as a CloudFormation template): Globals: Function: Environment: Variables: BAR: '{{resolve:ssm:myparam:1}}' ... MyParam: Type: "AWS::SSM::Parameter" Properties: …
Matthieu Napoli
  • 48,448
  • 45
  • 173
  • 261
3
votes
2 answers

AWS Systems Manager Parameter Store: Using StringList as Key Value Pairs in Java (Lambda)

Im using Api Gateway and AWS Lambda and AWS RDS to build an API. My Lambda Function Code is Java. Currently im using the AWS Systems Manager Parameter Store successfully to connect to my Database. Therefore I created a parameter called "connection"…
mjd
  • 109
  • 1
  • 1
  • 11
3
votes
2 answers

request to open data channel does not contain token

aws ssm start-session returns url and token to open WebSocket Connection. https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_StartSession.html#API_StartSession_ResponseSyntax Tried a client to open WebSocket…
Stranger
  • 31
  • 5
3
votes
0 answers

aws ssm:sendcommand is not working if i restrict access to specific instances

I am using a default policy Amazonssmmaintainancewindowrole. In that policy I have modified the permissions for ssm:SendCommand to restrict the access to specific EC2 instances which is not working. If I give the resource as "*" for ssm:SendCommand,…
AKHIL KUMAR
  • 63
  • 1
  • 6
2
votes
0 answers

Why is AWS Patch-Manager support of Python 3.10 failing?

Back in April we found our Ubuntu 22.04 did not get patched due to no support at the time. This got rectified a week later by AWS, and patching was successful in May. Since then we are finding the following Python 3.10 error below. Futrther, when…
amartinez
  • 169
  • 2
  • 14
2
votes
0 answers

MySQL dump through AWS SSM with port forwarding

I'm trying to develop a functionality on a Go tool that I wrote to facilitate AWS CLI usage. Basically, the goal is to dump a MySQL database through AWS SSM by using port forwarding. First of all, it works fine when I do the commands manually. aws…
916
  • 21
  • 2
2
votes
0 answers

AWS EventBridge Rule triggering on SSM Parameter Store change not working

I have a seemingly easy problem that already has cost me hours of troubleshooting without finding any solution. What I'm trying to to is simple: Create an EventBridge Rule that triggers on an SSM Parameter Store Parameter change. I use the default…
2
votes
0 answers

AWS Eventbridge doesn't trigger the targets which use input transformer

I have an Eventbridge rule which has two targets. One target is a CloudWatch log group and other is an SSM Automation (document). Rule triggers and both the targets show expected results. But as soon as I change the input (Eventbridge > SSM…
2
votes
1 answer

AWS Systems Manager is not resolving Automation Variable

I have a simple aws Systems Manager Automation that is designed to rotate the local windows password for systems located at externalized sites. During Step 7 of the automation, AWS calls and executes a powershell command document that validates that…
2
votes
1 answer

Catch event when an SSM-agent becomes active

I want to trigger a lambda whenever a new EC2 instance is registred in SSM's Fleet Manager (meaning the instance can be connected to using SSM), however I can't find what pattern to use in EventBridge. Within EventBridge, I tried using the following…
2
votes
1 answer

SSM always log in as Ubuntu User?

Is there anyway you can have a user always log in as an Ubuntu user for a ssm session instead of having to Sudo -su to Ubuntu user?
LilGoonchi
  • 31
  • 2
2
votes
2 answers

SSH ProxyCommand using aws SSM session manager and bash script with select command

In my company when we SSH to our AWS EC2 instances we are required to use the aws CLI session-manager plugin for auth. Using this SSH config snippet works: Host my-aws-host ProxyCommand bash -c "aws ssm start-session --target…
2
votes
0 answers

AWS SSM Start Session does not work in specific wifi network

I'd like to preface by saying this issue only occurs when connected to my home WiFi network as of Wednesday. When I connect to my office network or to a mobile hotspot everything works as expected, in the past it worked on my home WiFi as well. aws…
2
votes
1 answer

How do I solve this Serverless.yml ssm dynamic path creation problem?

Fairly new to Serverless and am having problems creating a dynamic path to an SSM parameter..... I have tried a fair few ideas but am sure that this is really close but its not quite there.... I'm trying to generate an ssm path as a custom variable…
2
votes
1 answer

How to extract parameters of type stringList in cdk?

I am trying to extract existing SSM parameters of stringList in my cdk app. I can store a single value, but to avoid duplication of code I am trying to store 3 values in single variable and access them as array in the form value[0] const…
Jatin Mehrotra
  • 9,286
  • 4
  • 28
  • 67