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
0
votes
1 answer

Where/how do I define a NotificationConfig in an AWS SSM Automation document?

Say I have an SSM document like the below, and I want to be alerted when a run fails or doesn't finish for whatever reason: { "description": "Restores specified pg_dump backup to specified RDS/DB.", "mainSteps": [ { "action":…
Rome_Leader
  • 2,518
  • 9
  • 42
  • 73
0
votes
0 answers

AWS Systems Manager timing for scans?

While playing with AWS Systems Manager, I set up a patch baseline to scan and install daily at 7 am with a one day auto-approval rule. The way I understand this is Systems Manager would scan every morning at 7 am for patches. However, the actual…
0
votes
1 answer

AWS SSM Python / Boto3 Create Hybrid Activation ExpirationDate Type Error

I am trying to create AWS SSM Hybrid activations for multiple divisions. My IDE is telling me that datetime is not callable, and the error message I am getting is: Traceback (most recent call last): File…
0
votes
1 answer

Using Amazon Systems Manager how to install AWS CLI for Linux

Is there a predefined script that can be used to install AWS CLI using Amazon Systems Manager?
kumar
  • 8,207
  • 20
  • 85
  • 176
0
votes
0 answers

How to loop through different Clodformation templates?

I have two Cloud Formation Templates (YML) files. I want the cloudformation module of Ansible to provision each one of them but it does not work. Code below roles/patching-cf-ssm/tasks/main.yml --- # tasks file for patching-cf-ssm - name: create a…
learner
  • 2,480
  • 10
  • 50
  • 94
0
votes
1 answer

CloudFormation mentions Document type is required for schema version 2.2

The following error is displayed on the stack in the cloudformation service of the browser AWS console. Document type is required for schema version 2.2 (Service: AmazonSSM; Status Code: 400; Error Code: InvalidDocumentSchemaVersion; Request ID:…
0
votes
1 answer

How run a command on an EC2 instance? AWS-RunShellScript is missing from SSM

In the AWS Console, I opened the AWS Systems Manager Console. I then chose "Run Command" and clicked the "Run a command" button. The only commands it has are: AWS-ApplyAnsiblePlaybooks Amazon Linux AWS-ApplyChefRecipes Amazon Windows,…
Don Rhummy
  • 24,730
  • 42
  • 175
  • 330
0
votes
1 answer

AWS Systems Manager Command: Works when executing manually, does not work from run command

I am executing a script on my EC2 Instances that will automatically restore databases. If I remote into the instance and manually execute the same ps1 script, it works. All SQL services are running. But if I execute it from Systems manager I get the…
Bruno
  • 487
  • 2
  • 8
  • 17
0
votes
1 answer

CloudFormation unable to access SSM parameters in template despite policy

I am attempting to deploy a CloudFormation template that pulls in some parameters from SSM using the method described in this blog-post: https://aws.amazon.com/blogs/mt/integrating-aws-cloudformation-with-aws-systems-manager-parameter-store/ The…
0
votes
1 answer

How to use pre-defined SSM Windows patch baselines in CloudFormation

I'm creating a Systems Manager patch baseline in CloudFormation to automatically apply OS updates for my Windows EC2 instances: Windows2016PatchBaseline: Type: AWS::SSM::PatchBaseline Properties: Name: Windows2016PatchBaseline …
0
votes
0 answers

Using Amazon Trust Services certificate

I want to set up systems manager on my own on-premises servers. According to the AWS SSM document, I have to install and enable a certificate from Amazon Trust Services using AWS Certificate Manager. I think this document is very old and it shows…
Guanda Li
  • 11
  • 2
0
votes
1 answer

AWS SSM to patch on-prem servers?

I am trying to patch on-prem servers using aws SSM. When I use 'run command' I am specifying a tag to limit patching to a set of servers. Unfortunately, this isn't listing targetted servers basing on tag selection. Is there any other alternative? I…
0
votes
3 answers

AWS Run Command : Python Not Found

I am using Boto3 SSM to run commands in my instance. When I run simple command such as echo hello world or mkdir abc it works fine and gives me expected output. but when I am trying to run python -V or any other python command. The output is python…
sjishan
  • 3,392
  • 9
  • 29
  • 53
0
votes
1 answer

AWS SSM document with private information

I've been asked to come up with a solution to ensure that all of our Windows servers on AWS have local accounts created for the admin team using SSM. We need the ability to audit this and ensure that the passwords can be changed easily. I know, i…
0
votes
0 answers

How to store dynamic CloudFormation Stack variables?

I'm currently using AutoScalingGroups to manage the lifecycle of a nodes in a Stack. During the Stack creation, the scripts create an ssh key that is then shared with all of the nodes in the cluster to allow an admin user to be able to ssh between…
Jon Roberts
  • 2,068
  • 1
  • 9
  • 11