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

Run script on all nodes after application installed on EMR

Bootstrap actions run before Amazon EMR installs the applications that you specify when you create the cluster and before cluster nodes begin processing data. If you add nodes to a running cluster, bootstrap actions also run on those nodes in the…
Dyno Fu
  • 8,753
  • 4
  • 39
  • 64
3
votes
2 answers

Python Boto3 Get Parameters from SSM by Path using NextToken

I've been working with boto3 for a while in order to gather some values from the Parameter Store SSM, this is the code I use, which is very simple: def get_raw_parameters_group_by_namespace(namespace_path): raw_params_response = None try: …
Marcelo Tataje
  • 3,849
  • 1
  • 26
  • 51
3
votes
2 answers

Where to find AWS Systems Manager (SSM) Document ARNs?

I am wanting to run an SSM Document on my EC2 instance, AWSFIS-Run-CPU-Stress. It is being executed via AWS Fault Injection Simulator (FIS), which requires a documentARN to be specified, specifically in…
x3nr0s
  • 1,946
  • 4
  • 26
  • 46
3
votes
0 answers

boto3: How to receive output after calling ecs execute_command

I want to send commands to a ecs/FARGATE container using python/boto3. I can successfully open a session using execute_command. But how can I get output of the command? And wait until its done? I find a a lot about the aws cli and the…
Nathan
  • 7,099
  • 14
  • 61
  • 125
3
votes
1 answer

How to correctly/safely access parameters from AWS SSM Parameter store for my Python script on EC2 instance?

I have a Python script that I want to run and text me a notification if a certain condition is met. I'm using Twilio, so I have a Twilio API token and I want to keep it secret. I have it successfully running locally, and now I'm working on getting…
dtluther
  • 115
  • 2
  • 9
3
votes
1 answer

Unable to start the Amazon SSM Agent - failed to start message bus

When registering an Amazon SSM Agent, it registers successfully in the SSM Managed Instances console, but the connection shows "Connection Lost". When I try to start the service manually, I get the following error: Error occurred fetching the seelog…
LewlSauce
  • 5,326
  • 8
  • 44
  • 91
3
votes
3 answers

How to scp to ec2 instance via ssm agent using boto3 and send file

Hi need to transfer a file to ec2 machine via ssm agent. I have successfully installed ssm-agent in ec2 instances and from UI i am able to start session via "session-manager" and login to the shell of that ec2 machine. Now I tried to automate it via…
Naggappan Ramukannan
  • 2,564
  • 9
  • 36
  • 59
3
votes
1 answer

Can we run command as background process through AWS SSM?

I am trying to sync a S3 bucket which takes close to 3 hours to completely sync. sync-bucket.sh: nohup aws s3 sync "$source_bucket/$folder/" "s3://$destination_bucket/" \ --profile abc --acl bucket-owner-full-control --sse "aws:kms" \ …
Yogesh Gupta
  • 1,226
  • 1
  • 12
  • 23
3
votes
2 answers

Any way to inject Systems Manager values in React App with CDK/AWS

I'm working on an interesting task and so far can't solve it. Configuration: AWS code pipeline for backend which stores a value in SSM (@aws-cdk/aws-ssm) AWS code pipeline for frontend which builds a pipeline which builds project for React…
3
votes
1 answer

How do I create a parameter store configuration value with Serverless Framework?

I have the following queue that is getting created with the serverless.yml file of Serverless Framework project: resources: Resources: myAppSQSQueue: Type: "AWS::SQS::Queue" Properties: QueueName:…
3
votes
1 answer

Spring boot not able to resolve aws param store variable

I’m trying to secure secrets into spring cloud. I have microservice reading configuration from spring cloud, but not able to resolve value from parameter store. For example secure db user and pass. password=${/config/password} but the path is not…
3
votes
2 answers

AWS SSM Agent - Using the aws cli, is there a way to list all the AWS instances that are missing the SSM agent?

I need to audit a large number of AWS accounts to determine which EC2 instances are missing the SSM agent. Then I need have all those instances and their tags outputted. Running aws ssm describe-instance-information lists all the instances that have…
Kayotic
  • 97
  • 2
  • 10
3
votes
2 answers

How to migrate parameter store data to other Region / AWS Account

Consider that I have got a AWS account that already has some parameter store data. Is there a way to migrate these data from this parameter store to another: parameter store? region? AWS account? I would prefer official tools to do this, but tools…
OneNoOne
  • 587
  • 7
  • 23
3
votes
1 answer

AWS SSM Parameter store concurrent updates gives "TooManyUpdates" error

I have a bash script that uses AWS CLI to put value to a parameter in AWS Systems Manager Parameter Store. The bash script is run on an EC2 instance and there are several instances deployed. So I have no control over the concurrency of the bash…
Technoshaft
  • 679
  • 6
  • 18
3
votes
1 answer

AWS Systems Manager `GetParametersByPath` API returns outdated results

I am trying to utilize SSM's GetParametersByPath API and I am getting outdated results which looks like a ~3 seconds caching by Path parameter. I am testing the following scenario: Get parameters by path recursively Put a parameter under the tested…
Eugene
  • 3,280
  • 21
  • 17