Questions tagged with AWS Systems Manager

Content language: English

Sort by most recent

Browse through the questions and answers listed below or filter and sort to narrow down your results.

I have installed SSM agent on server and it was working fine but after changing the instance type of the server SSM agent couldn't start and gave the below error : 2022-12-23 04:19:59 ERROR Agent failed to assume any identity 2022-12-23 04:19:59 ERROR failed to find identity, retrying: failed to find agent identity 2022-12-23 04:20:00 ERROR Agent failed to assume any identity On Google I found the solution to solve this problem by running these two commands: 1) Import-Module "C:\ProgramData\Amazon\EC2-Windows\Launch\Module\Ec2Launch.psd1" 2) Add-Routes But I couldn't find what actually this command does and its my Production Server so will this command affect my application running on it and what all changes will occur after running these commands.
2
answers
1
votes
117
views
asked 3 months ago
I have AWS systems manager managed node setup for a greengrass core device and want to run command to execute shell script. The shell script needs to access greengrass core environment variables $AWS_IOT_THING_NAME to process. However, I do not see any value returned by $AWS_IOT_THING_NAME. 1. Is there a different mechanism to access the greengrass env variables by the AWS SSM run command? 2. I can see that the SourceId of the node is same as the AWS_IOT_THING_NAME. Can I access it inside a shell script as environmental variable? I need to execute a script to run on multiple devices which uploads images to the s3 bucket with folder name {AWS_IOT_THING_NAME}/images. I know this can be done using custom greengrass component, but I want to try it using the AWS SSM fleet manager.
1
answers
0
votes
37
views
raghak
asked 3 months ago
Prevent AWS inspector scanning AWS ec2 instance from autoscaling groups. The AMI we use we scan separately and we don't need to scan each instance on its own. Is there a way to prevent scans of some ec2 instances from inspector.
2
answers
0
votes
48
views
asked 3 months ago
My local printer resources are not all being redirected from the local machine to the AWS Windows Server. Local RDP settings are correct. Is there another setting I am missing that enables the Server to see the local resources when connecting with an RDP client? I have tried changing the printer port from WSD port to TCP/IP no luck. Rebooted the AWS Server still no luck. The printers are wireless. Any suggestions would be appreciated. Thank you.
0
answers
0
votes
18
views
asked 3 months ago
"StartAutomationExecution": https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_StartAutomationExecution.html The "StartAutomationExecution" call supports tagging, but I could not find a way to read it from the "GetAutomationExecution" and "DescribeAutomationExecutions" calls either. What is the best way to retrieve the tag I put on the automation that was executed?
1
answers
0
votes
35
views
combii
asked 3 months ago
Hi, we are having issues with AWS Inspector because all new EC2 instances are shown as "Unmanaged EC2 instance" despite of having the SSM agent installed, having the right role with "AmazonSSMManagedInstanceCore" permissions attached, and being listed in the Managed Nodes within the SSM. When we try to run the "AWSSupport-TroubleshootManagedInstance" automation, it gets stuck in step 4 "GetEC2InstanceProperties" in Pending state. Any idea about how to fix this? Thanks.
2
answers
0
votes
262
views
asked 3 months ago
We plan to use the Patch Manager in automatic way to install OS patches (SLES). Normally before wie start to patch a system we create first a Snapshoot of the root volume and than we start patching. I can't find any Information about that in context of the SSM Patch Manager to create a snapshot of the node before patching started.
1
answers
0
votes
50
views
profile picture
asked 3 months ago
Hi, When patching of ubuntu 22.04 will ba available via amazon-ssm-agent ? I have lot of EC2 instances with linux ubuntu 22.04 which is on the market some time, moreover AWS is supporting this version of ubuntu as official AMI, but amazon-ssm-agent does't support ubuntu fully.
1
answers
2
votes
69
views
Wojtek
asked 3 months ago
Hi, Lost SSH private key to access production web server. After google result, I tried to follow two method with the following link at https://aws.amazon.com/premiumsupport/knowledge-center/user-data-replace-key-pair-ec2/ But both method 1 and 2 not work at all. Could you please help to figure out? Method 1: Enter user-data. After config completed, using SSH and server refused the public key Method 2: Use AWS Systems Manager. Unable to find runbook called AWSSupport-ResetAccess in Automation runbook Roy
3
answers
0
votes
241
views
asked 4 months ago
Is there a way to change the default shell for runShellScript in System Manager when you execute a run command? It defaults to sh and that does not behave the same as bash.
0
answers
0
votes
29
views
asked 4 months ago
EC2 Session manager is not loading for linux instances when trying to access it from inside AWS workspaces station. It shows blank black screen although I'm able to connect to EC2 session manager from my personal system. Please guide. Also, RDP connection for windows is working fine from AWS workspaces.
0
answers
0
votes
45
views
asked 4 months ago
How do I invoke "AWS-CreateRdsSnapshot" SSM document via a Lambda function?
1
answers
0
votes
80
views
asked 4 months ago