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
2
votes
3 answers

AWS lambda: How can I use AWS ssm in the serverless.ts file (Typescript)

I'm trying to do use ssm in the serverless.ts file and it is not working. const serverlessConfiguration: AWS = { service: "data-lineage", frameworkVersion: "2", custom: { webpack: { webpackConfig: "./webpack.config.js", …
2
votes
1 answer

AWS SSM sessions manager doesn't work for private instances with NACL configured

I am unable to use AWS SSM sessions manager for secure login to my private instances with NACL rules applied. Whereas AWS SSM works if I update NACL rules open To public(0.0.0.0/0).I want my private instances to be secure and not have open…
user12391688
  • 21
  • 1
  • 2
2
votes
1 answer

How to get current ssm sessionId after starting a new session?

I'm trying to get the current aws ssm sessionId after starting a session. I can see that when I start it it gets printed, like this Starting session with SessionId: test@test.com-0ftz59d2285d67fb5 But I don't know where this comes from. I can also…
2
votes
0 answers

AWS SSM Parameter Store in Elastic Beanstalk

I'm using AWS Elastic Beanstalk to host my application with two environments (production and staging). I would like to store my environment variables in AWS System Manager Parameter Store (and AWS Secrets Manager), but I don't find simple ways to do…
2
votes
1 answer

AWS SSM Automation: How to gracefully fail in script invoked by aws:executeScript

I'm running a Python script via AWS Systems Manger in an automation document - also called a runbook. The script is invoked via action aws:executeScript and the selected runtime is python3.7. All available examples only show how to return data from…
udondan
  • 57,263
  • 20
  • 190
  • 175
2
votes
0 answers

Lambda retrieve SSM parameter in Localstack

Using the latest localstack-full Docker image, I have stored an encrypted SSM parameter like this: aws --region us-east-1 --endpoint-url=http://localhost:4566 ssm put-parameter --name "dbpassword" --value "secret2" --type "SecureString" Then I have…
user11868214
2
votes
1 answer

AWS Lambda SSM calls randomly goes in timeout

I've a lambda deployed on AWS, in a VPC that has internet access via NAT. The deploy is made using Serverless. The lambda uses some Middy middlewares and fetches some credentials from SSM. The problem is that the SSM fetch randomly goes in…
maxdelia
  • 858
  • 2
  • 14
  • 35
2
votes
2 answers

Cloudformation stack default parameter SSM Parameter store

I am trying to launch a jupyterlab instance using cloudformation (its something I do a lot and sagemaker does not have a 1y free tier) so the beginning looks like this which does not work. Specifically the password parameter #…
2
votes
0 answers

AWS Systems Manager Run Command execution timeout when I use nohup &

AWS Systems Manager Run Command when I use command nohup & it returns execution timeout Does AWS Systems Manager Run command not supports background process? How to fix this problem?
ParkEunsoo
  • 21
  • 1
2
votes
1 answer

How is AWS Session Manager bypassing the Security Group?

Generally, any traffic to an EC2 instance will pass through the Security Group attached to the interface of the EC2 instance. However, when an SSH connection to an EC2 instance is established via AWS Session Manager, Security Groups have no impact.…
2
votes
1 answer

AWS SSM : Pass tag-name instead of Instance-ID

I am working on AWS, where we have instances running SSM client. For automation, I am passing certain commands to these instances time-to-time. Currently, I have them setup with instance-id. This is proving inflexible for us, since any change to…
We are Borg
  • 5,117
  • 17
  • 102
  • 225
2
votes
2 answers

aws ssm send command cli does not work to create a file

I try below aws ssm send-command to create a file on the EC2-instance but it does not work. aws ssm send-command --instance-ids i-XXXXXXXXXX --document-name "AWS-RunShellScript" --parameters commands="touch /home/hadoop/test2.txt" --output…
Bostonian
  • 615
  • 7
  • 16
2
votes
1 answer

Trying to run a Lambda function to invoke ssm and define a EC2 tag to push the same on multiple instance

Trying to run a Lambda function to invoke SSM and define an EC2 tag to push the same on multiple instances with the below script. Getting the below error when trying to execute. I am just started learning to write a script and using aws lambda first…
2
votes
1 answer

ssm automation document input in AWS-RunShellScript not substituting variable

I am trying to run a command in bash where part of the command is substituted from a variable that I created in a previous step, however the string substitution is not working. I have tried many variations of this with single, double quotes, etc…
user1601716
  • 1,893
  • 4
  • 24
  • 53
2
votes
0 answers

How to import a .pfx certificate in AWS Certificate Manager?

How to store a password protected .pfx file in AWS Certificate Manager? By 'password protected', I mean I have a big string (binary of the pfx certificate) which I can save in a file with the extension .pfx. I will be able to install that .pfx…
MAK
  • 1,915
  • 4
  • 20
  • 44