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

aws send command not copying file from s3 bucket to windows server ec2 instance

Is there a way i can copy a file from my s3 bucket to an windows ec2 instance? I have tried the following way using send command.. it returns success but file is not being copied.. need help sh """ aws ssm send-command --instance-ids…
Reese
  • 389
  • 2
  • 10
  • 26
2
votes
1 answer

Centralized multi-account patching with AWS Systems Manager Automation using Terraform

I am trying to patch and manage the execution of AWS SSM document from my root account. I am trying to do automation using Terraform version 12. But I dont see the support of multi account in their document. I am trying to set up…
cloudbud
  • 2,948
  • 5
  • 28
  • 54
2
votes
1 answer

I want to monitor(notifications)SSM managed instance ping status.Have anyone implemented it?

I want to monitor(notifications)SSM managed instance ping status.It should notify when instance ping status is connection lost.I tried to look for options in cloudwatch event rules but nothing worked.Have anyone implemented it?
2
votes
1 answer

Better way of using AWS parameter store? 1. Keeping all variables in a single parameter as JSON 2. Keeping every variable as a separate parameter

I have a web app to be hosted on AWS cloud. We are reading all application configuration from AWS parameter store. However, I am not sure if I should have all the variables as a single parameter in a json format or have one parameter for each…
2
votes
1 answer

SSM send-command with Powershell does not complete until background job finishes

I am using SSM send-command to start a Tomcat process on a Windows EC2 instance. for example: aws ssm send-command --instance-id i-xxxx --document-name "AWS-RunPowerShellScript" --parameters 'commands=["startup.bat"]' This does indeed start…
wrschneider
  • 17,913
  • 16
  • 96
  • 176
2
votes
2 answers

SSM parameter in cli is evaluating string as an api request

I am trying to store an ssm parameter using AWS cli URL='https://gatewayurl.com/dev' aws ssm put-parameter --name "/dev/app/HOSTNAME" --value $URL --type String --overwrite SSM parameter is being uploaded however it does not store value…
Edwin
  • 461
  • 1
  • 5
  • 14
2
votes
1 answer

Is CloudFormation not suitable for creating SSM documents?

I'm wondering if creating SSM documents via CloudFormation actually makes sense or if instead I should use another mechanism. My concern is, that when the content changes, CloudFormation actually creates a new document and destroys the old one. In…
udondan
  • 57,263
  • 20
  • 190
  • 175
2
votes
2 answers

AWS CDK ssm.CfnAssociation define parameters

I'm stuck with creating ssm.CfnAssociation due to I'm novice in AWS CDK and CloudFormation also. I'm trying to create AWS Systems Manager State Manager task (AWS-RunAnsiblePlaybook) by ssm.CfnAssociation, but I have misunderstanding how can I define…
2
votes
2 answers

aws Download Content in Yaml

Trying to format my yaml to download a script in S3 bucket to run in SSM. I've tried many different formats, but all examples seem to be JSON formatted - action: aws:downloadContent name: downloadContent inputs: sourceType: "S3" …
mbspark
  • 534
  • 3
  • 18
2
votes
1 answer

Does aws-sdk-mock support mocking of AWS SSM (Parameter Store)?

I am trying to mock AWS SSM using aws-sdk-mock with the code below but not working. Does not throw error, fetch the values from Actual store when getParametersByPath is called. I had a look at the aws-sdk-mock documentation but does not seem to have…
2
votes
0 answers

How to remove EC2 instance from load balancer (ELB) with AWS Systems Manager Maintenance Windows

I have EC2 instances behind an ELB. In Systems Manger, I want a way to automate taking an instance off the load balancer, then run command AWS-ApplyPatchBaseline, then putting the instance back on the load balancer. I have successfully used…
2
votes
1 answer

Jest Mock Promise with Params

This is the method I am trying to write Unit test in Jest async function getParameter(parameter: string, withDecryption: boolean = false): Promise { const params = { Name: parameter, WithDecryption: withDecryption, }; try…
Shiva MSK
  • 484
  • 1
  • 6
  • 16
2
votes
1 answer

AWS ssm send-command : modify timeout in CLI

I'm using AWS SSM to compute a long script on an ec2 instance. I would like to configure the execution timeout (execution time, not launch time) and I don't find how to do this on the official documentation (opposing informations or not working).…
alexandre_d
  • 155
  • 7
2
votes
0 answers

AccessDeniedException: Cognito_tpnpoolUnauth_Role/CognitoIdentityCredentials is not authorized to perform: ssm:GetParameter on resource

Lambda function get the password from SSM Password store but encounter this error. Already set up the policy on both lambda role and cognito role. ssm:Describeparameters ssm:Getparameter sts:assumerole *{ AccessDeniedException: User:…
Scott Jones
  • 175
  • 2
  • 12
2
votes
0 answers

Using SSM parameter to set logRetentionInDays in serverless.yml

I'm having issues on using EC2 Parameter Store SSM Parameters in serverless.yml file for setting logRetentionInDays configuration value. I'm getting error that logRetentionInDays should be an integer over 0. Is there any possibility to use SSM…