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

CloudFormation - always use latest AMI

The blog post Query for the latest Amazon Linux AMI IDs using AWS Systems Manager Parameter Store | AWS Compute Blog describes how to always reference the latest version of an distribution in a CloudFormation template. # Use public Systems Manager…
benji
  • 2,331
  • 6
  • 33
  • 62
15
votes
3 answers

SSM send command to EC2 instance Failed

I'm trying to use boto3 to run ssh commands on EC2 instances. I read this guide: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshooting-remote-commands.html and I did everything of what they wrote there but I keep get error…
Udi Goldberg
  • 175
  • 1
  • 1
  • 5
14
votes
1 answer

Accessing AWS SSM Parameters in NodeJS

I'm trying to get the ssm parameter inside my nodejs project, is IAM credentials I and wrote a test in my elastic beanstalk instance and works. The problem is inside the project. Any ideas why? // Load the AWS SDK for Node.js var AWS =…
Otavio Carvalho
  • 271
  • 1
  • 3
  • 10
14
votes
7 answers

How to export parameters from aws parameter store and import into another account

on my first aws account I have parameters specified in the following manner: /config/a => value1 /config/b => value2 /config/c/a => value31 /config/c/b => value32 I want to move these to my second aws account. I created these parameters in the…
14
votes
4 answers

Retrieving command invocation in AWS SSM

I am trying to send command to a running ubuntu ec2 instance. I have configured the appropriate role and I have an ssm agent running on the ec2 instance. Using the boto3 SDK I am able to use the client.send_command() function to successfully send a…
13
votes
2 answers

Exception thrown when using @Service in Kotlin

I'm writing an SSM project in Kotlin and this happens as long as I try to annotate a class (a service implementation) with @Service. Tried to code this implementation class in Java instead and it worked all fine. Tried to keep only the necessary…
Zenas Chen
  • 471
  • 4
  • 14
12
votes
1 answer

AWS IAM policy: Multiple Actions and Multiple Resources

It is question on AWS IAM policy, multiple Actions with Multiple Resources (presumably not related). I have parameter 'myparam' encrypted with 'mykey', and I have policy as below separate blocks, one for param and one for key, it works. { { …
Krishna
  • 501
  • 1
  • 8
  • 17
12
votes
4 answers

Retrieve AWS ssm parameter in bulk

How can I retrieve parameters from AWS Systems Manager (parameter store) in bulk (or more than one parameter) at a time? Using aws-sdk, following is the Node.js code I have written to retrieve SSM parameter from parameter store: const ssm =…
ahadcse
  • 499
  • 3
  • 7
  • 16
12
votes
5 answers

Unable to fetch paramters (Param Value) from parameter store for this account

I get the error: $ aws cloudformation deploy --template-file ./packaged-stack.yml --stack-name mystackname --capabilities CAPABILITY_NAMED_IAM` An error occurred (ValidationError) when calling the CreateChangeSet operation: Unable to fetch…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
9
votes
2 answers

How to read and modify the SSM parameter with python boto3

i am trying to develop a code where i can access and then modify and update the SSM parameter value . Anyone , could you let me know how can this be achieved with boto3
Sumanth Shetty
  • 587
  • 1
  • 8
  • 19
8
votes
4 answers

How to fetch SSM Parameters from two different accounts using AWS CDK

I have a scenario where I'm using CodePipeline to deploy my cdk project from a tools account to several environment accounts. The way my pipeline is deploying is by running cdk deploy from within a CodeBuild job. My team has decided to use SSM…
Pedreiro
  • 1,641
  • 2
  • 18
  • 28
8
votes
3 answers

What's the best way to consume Parameter Store value in AWS CDK

I am having problems using SSM valueForStringParameter method in CDK. It's working the first time I deploy the stack, but it is not picking up updates to the parameter value when I redeploy the stack because CloudFormation template hasn't changed…
Tofig Hasanov
  • 3,303
  • 10
  • 51
  • 81
8
votes
1 answer

How to create/overwrite a parameter in AWS Parameter Store only if it does not exist?

I am using terraform to create a parameter in the AWS Parameter Store. resource "aws_ssm_parameter" "username" { name = "username" type = "SecureString" value = "to_be_defined" overwrite = false } provider "aws" { version =…
Ankit
  • 6,772
  • 11
  • 48
  • 84
8
votes
2 answers

Wait until a condition is met in bash script

until [ $(aws ssm get-automation-execution --automation-execution-id "$id" --query 'AutomationExecution.AutomationExecutionStatus' --output text) = *"InProgress"* ]; do echo "Automation is running......" sleep 1m done status=$(aws ssm…
chandra
  • 693
  • 3
  • 8
  • 21
7
votes
1 answer

How to use AWS SSM parameter store values in Cloudformation template conditionals?

I have configured a key value pair in the AWS SSM parameter store UI as my-ssm-key = ssm-value. I have the following YAML template for CF built on Serverless: service: redirect-test provider: name: aws runtime: python3.8 environment: …
1
2 3
11 12