Questions tagged [amazon-systems-manager]

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 SSM has an Agent that can be installed on your EC2 instances and allows your to do things like run commands, monitor and upload logs to Cloudwatch. Do take a look at http://docs.aws.amazon.com/systems-manager/latest/userguide/what-is-systems-manager.html for more info.

76 questions
3
votes
1 answer

how to check logs of deleted params in parameter store of Systems Manager in AWS

some how params are deleted from parameter store of Systems Manager in ec2 console. am unable to find out who deleted those, can anyone please let me know how to do that ?
3
votes
1 answer

AWS Parameter store Secure String

I have executed PutParameter using .net AWS SDK like so: using (var client = new AmazonSimpleSystemsManagementClient(_key, _secret, _region)) { await client.PutParameterAsync(new PutParameterRequest …
zaitsman
  • 8,984
  • 6
  • 47
  • 79
2
votes
0 answers

amazon-ssm-agent failing to restart after reboot on Windows Server 2019 instance

We are applying patches to our Windows instances using the patch manager function in AWS Systems Manager. We have a patch baseline that is executed against a set of windows instances (each of which are part of a patch group) by executing a…
bstack
  • 2,466
  • 3
  • 25
  • 38
2
votes
2 answers

How to use StringMap parameters in SSM documents?

I have the following step in a SSM document. The result of the call is a Json, so I wanted to parse it as a stringMap (which seems to be the correct type for it) instead of creating an output for each variable I want to reference I've tried…
2
votes
1 answer

AWS Systems Manager "In Progress" commands limit to 5?

So firstly, I looked around for an existing thread on the issue I'm facing, but I haven't found anything. I've also posted this on AWS forums and got no answer. If there is an existing thread here for this already, I apologize. Furthermore, I will…
2
votes
1 answer

Is it possible to add to IConfiguration after the WebHost has started?

I am using AWS Systems Manager Parameter Store to hold database connection strings which are used to dynamically build a DbContext in my .NET Core Application I am using the .NET Core AWS configuration provider (from…
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
2 answers

AWS Session Manager requires allowing inbound traffic but it shouldn't

I have an EC2 instance running with the following networking setup: it resides in a public subnet with an Internet Gateway attached it has a security group attached with an outbound rule to allow all traffic (all ports on 0.0.0.0/0) According to…
2
votes
3 answers

How to use Get-SSMParameterList CmdLet to process parameters with a specific prefix

I want to write a Powershell script that will get all parameters from the AWS SSM Parameter store that belong to my application, then iterate over the parameters and perform an action on each one. The parameters for my application are identified by…
Joe
  • 122,218
  • 32
  • 205
  • 338
2
votes
0 answers

AWS Lambda Python 3.6 - SSM to EC2 - executes commands as root rather than user

Problem I'm executing commands on a Centos 7 EC2 instance via SSM in a Lambda (Python 3.6). Unfortunately, SSM is executing the commands as the root user. I need the commands to be executed with the default centos user. Is there any way to change…
AnxGotta
  • 1,006
  • 7
  • 28
2
votes
1 answer

Difference between cfn-init and SSM?

I know the basic overview of them, but what is the practical scenario for each of them? As cfn-init used to bootstrap the servers and SSM helps to execute the commands via ssm documents.
1
vote
1 answer

Terraform Error with SSM Document - "Unknown Property"

I'm getting a strange error when deploying this resource. Here's the error: Exception Error in apply - Error: Error creating SSM document: InvalidDocumentContent: Unknown property "MonitoringRole". with…
1
vote
0 answers

AWS Systems Manager Explorer data retrieve via CLI

I'm trying to retrieve patch compliance data for AWS ec2 instances using CLI or SDK under below limitations. I need to retrieve from the master account for sub accounts ec2 instances(within AWS Organization) The instances has to be limited only to…
1
vote
1 answer

Configuring SNS Topic notification IAM Role in Maintenance Window tasks

I currently have an AWS Maintenance Window set up in order to keep certain things up to date across some EC2 instances. I want to set up a SNS Topic to email me when one of the tasks fails to run correctly. So far I have the following Cloudformation…
1
vote
1 answer

Pull encrypted data from AWS SSM Parameter store into terraform var file and pass it encrypted till it is called inside the terraform code

How to pull encrypted data from the SSMParameter Store into the terraform var file and keep it encrypt end to end? My requirement is: I want to keep my passwords and some other environment variables in AWS SSM/AWS Secrets Manager, now pull that…