Skip to main content

Questions tagged [aws-systems-manager]

0 votes
0 answers
995 views

Can run daily logrotate without cron?

On my docker, i use amazonlinux:2 at this default enviroment not install cron. I want to use logrotate for rotating log of application every daily. Can Logrotate work automatic without cron? This file ...
VoVuong's user avatar
1 vote
1 answer
302 views

Not able to list all the images

I am trying to list all the images which has the name Ansible*. If i can pull it off, i can use it to clean my AMI's that are created during patching activity. i am trying it via SSM Automation ...
Raj R's user avatar
  • 13
0 votes
1 answer
1k views

failed to find platform in manifest.json when sharing AWS Systems Manager Distributor package between AWS accounts

I created an AWS Systems Manager Distributor package in one AWS account that will install an application on Windows, Ubuntu, Amazon Linux, or Redhat. The manifest and associated packages are stored in ...
Appleoddity's user avatar
  • 3,980
1 vote
2 answers
2k views

Is it possible to connect through session manager to the instance using SSH from an external source like my desktop. And if so, how

I have been clicking through the Session Manager console. Pretty neat. The next question I have with this - I *think we should be able to connect using SSH from an outside SSH client. Meaning, I have ...
Christopher Gibson's user avatar
2 votes
2 answers
5k views

EC2 instance doesn't show up in AWS Systems Manager

I am trying to create an EC2 instance (Amazon Linux, so I shouldn't have to configure the SSM agent as it should be autoconfigured) in a private subnet, and want to be able to SSH into it. According ...
Leejjon's user avatar
  • 139
0 votes
1 answer
1k views

How do I enable aws inventory with terraform?

I have to go to the AWS UI and select "enable inventory" on managed instances- what is aws doing when I click this button? Can I do this with terraform somehow so I dont need to keep going ...
red888's user avatar
  • 4,383
2 votes
1 answer
3k views

I've been locked out of EC2 RDP connection to my Windows 2019 Server instance after resetting firewall rules

I've been using a Windows_Server-2019-English-Full-Base-2020.12.09 EC2 instance in N.Virginia for a while and accidently got my firewall rules reset and it seems RDP port is closed and not accepting ...
Charith Jayasanka's user avatar
0 votes
0 answers
112 views

Web app runs super slow after AWSSupport-ResetAccess

Here's what happened: I spun up an EC2 instance I successfully installed Ghost on it (a self-hosted blogging platform) I lost my *.pem private key that gives me access to the EC2 intance I ran the ...
Paul Razvan Berg's user avatar
1 vote
1 answer
7k views

SSH connection getting a Connection timed out in AWS

I have a website hosted in AWS EC2 with the t2.micro instance(Ubuntu 18.04.4). When I tried to connect through Putty or browser-based SSH connection from the AWS console, i am getting a connection ...
Sreejith Sasidharan's user avatar
0 votes
1 answer
229 views

Can't RDP Into EC2 After Running Systems Manger Command

I ran a very simple powershell script (setting up odbc) on a bunch of EC2 instances using AWS Systems Manager. The script worked but now I am unable to RDP into any of the instances. I have tried ...
Eric's user avatar
  • 1
0 votes
0 answers
1k views

How do I poll for when the ssm agent is started and session manager can connect for newly created instances?

I use SSM to connection to windows ec2 instances with the cli: aws ssm start-session --target <id> It takes the ssm service on a windows instance a few mins to start sometimes I can check when ...
red888's user avatar
  • 4,383
1 vote
2 answers
2k views

AWS SSM port forwarding bind to external interface

I have managed to get SSM port forwarding working to an AWS instance using the following from my "jump server". aws ssm start-session --target $INSTANCE_ID \ --document-name ...
thewire247's user avatar
1 vote
1 answer
779 views

How to Centralize AWS SSM with multiples accounts

I'm trying to setup AWS SSM with one environment to administer all organizations/accounts that my clients have. I tried to setup using this article: Centralized Multi-account and Multi-region ...
Luis Fernando's user avatar
1 vote
0 answers
208 views

AWS Config rules with no resources by tag

I have an AWS Config rule set up to look for the 'Certify The Web' application using the EC2_MANAGEDINSTANCE_APPLICATIONS_REQUIRED rule. I have the scope of resources to a tag Key of ACM and value of ...
Parker's user avatar
  • 111
0 votes
1 answer
2k views

How to decrypt Secure String values in Parameter Store using .NET Core's AmazonSimpleSystemsManagementClient

I have the following code in a Lambda function: var ssmConfig = new AmazonSimpleSystemsManagementConfig { RegionEndpoint = RegionEndpoint.APSoutheast2 }; ...
cbp's user avatar
  • 299
1 vote
2 answers
3k views

AWS Windows EC2 unable to join to AWS Managed AD using SSM

I have a windows server that sits in a VPC with no internet access. But it has VPC endpoints to SSM,ec2messages,ssmmessages and ec2 api. When I try to join this to a domain by using the ssm api, ...
screenslaver's user avatar
1 vote
1 answer
84 views

Amazon ec2 or Google cloud separate billing

I gave got a software which is installed on multiple ubuntu/ec2 machines. I need the same setup for multiple clients. Each client should only be given option to pay the bill, scale the ec2 ...
jeril's user avatar
  • 109
2 votes
3 answers
5k views

aws ssm start-session .. AWS-StartPortForwardingSession .. hangs

I am trying to set up port forwarding between my local PC and an AWS EC2 based on the AWS SSM port forwarding article instance like this: aws ssm start-session --target i-0822c9a6c52ca7394 \ --...
Jakub Holý's user avatar
0 votes
1 answer
385 views

AWS AMI import of HyperV Virtual Machine on LVM extended partition on Two drives

I am having a problem today while importing a hyper-V vm to AWS AMI. Actually my VM has 2 Harddisk and both of them LVM set and use as single LVG expended volume on both drives. now when i am ...
Yousuf's user avatar
  • 45
0 votes
1 answer
2k views

AWS EC2 Windows CloudWatch Agent to push memory and disk space metrics

I am trying to configure custom metrics for windows server in EC2. I need memory utilization and free disk space metrics from perfmon. So, the document says we can use AWS SSM and cloudwatch agent to ...
serverstackqns's user avatar
2 votes
1 answer
9k views

AWS system manager : Verify that the IAM instance profile attached to the instance includes the required permissions

I am trying to access an ec2 instance using AWS systems manager for that I've created a role attached to the following policies. AmazonEC2RoleforSSM AmazonSSMAutomationApproverAccess ...
shamon shamsudeen's user avatar
1 vote
0 answers
467 views

Permanently load environment variable on aws ssm login in windows PowerShell

I am using ssm login for logging into my windows server 2016 data center edition. When I make a RDP connection and run PowerShell from RDP, All the system environment variables are loded correctly ...
Shailesh Sutar's user avatar
0 votes
1 answer
685 views

Cognito User Pool trying to send SMS when it's configured for email sending

I'm using the serverless framework in order to create a Cognito User Pool using the following CloudFormation configuration: Resources: CognitoUserPool: Type: AWS::Cognito::UserPool ...
Alessandro Cuppari's user avatar
1 vote
1 answer
1k views

corrupted AWS /etc/sudoers.d/90-cloud-init-users

On one of my EC2 EBS backed instances, /etc/sudoers.d/90-cloud-init-users is corrupted so I can not sudo I tried pkexec visudo to fix it -- it asks for authentication, but won't accept credentials. ...
Kyle Banerjee's user avatar
0 votes
2 answers
1k views

AWS Inline Policy to Limit Automation Document Execution per IAM

AWS Inline Policy to Limit Automation Document Execution per IAM is my goal, but understanding current limitations I can see that I can only use * wildcard and can't specify a specific document. Is ...
Daniel Johns's user avatar
1 vote
1 answer
3k views

Trigger external API Calls with Cloudwatch Events

I am looking for a solution to make a POST Request to an External API when the state of an EC2 Instance changes. I want to use Cloudwatch so that I can pass the InstanceId to the API with the Input ...
DTD's user avatar
  • 51
4 votes
1 answer
1k views

AWS SSM Agent registration call cannot be proxied?

How do I proxy the amazon-ssm-agent -register call? I want to proxy all the amazon-ssm-agent traffic in a local VM instance through a squid proxy. When the SSM agent is running, it seems to proxy ...
Tobias Roland's user avatar
1 vote
1 answer
101 views

Can Windows 2016 EC2 instance provisioned by ElasticBeanstalk be connected to SSM

Can Windows 2016 EC2 instance provisioned by ElasticBeanstalk be connected to SSM in AWS? I'm specifically asking this as I don't see the EB default role containing any SSM policies.
Daniel Johns's user avatar