Browse through the questions and answers listed below or filter and sort to narrow down your results.
How much does it cost to connect to private ec2 using aws ssm ?
I am trying to use ssm to access and manage ec2 in a private network.
I searched for the cost of the service, but only other services such as paramete center came out, so I couldn't measure the cost of the service I wanted to do.
How is the cost of using AWS ssm service to connect to ssm on a private network and use commands?
Accepted AnswerAWS Systems Manager
1
answers
0
votes
2
views
asked a month ago
AWS System Manager Running AWS-RunRemoteScript doesnt redirect stream output to file
I have a script that runs across our estate. It includes running a SQL script, and ideally I need to capture the output into a text file on that instance. As the Powershell script uses Invoke-SQLCMD, i need to redirect the verbose output to capture it.
This works as intended when running the script\line in a PS window direct on the instance and the verbose output is captured in my file $logfile:
`(Invoke-SQLCMD -ServerInstance ".\$InstanceName" -Query $OptimizeIndexesSQL -Verbose -ErrorAction Stop) 4>&1 | Tee-Object -FilePath $LogFile -Append`
When the script runs via SSM, it fails to push the verbose output to the file.
Why?
Accepted AnswerAWS Systems Manager
3
answers
0
votes
2
views
asked 2 months ago
2
answers
0
votes
3
views
asked 3 months ago
Typing 'a' in the search bar in AWS Systems Manager Session Manager console makes everything disappear
Hi,
Whenever I type the character `a` in the search bar on the AWS Systems Manager Session Manager console, the whole console goes white and everything gets disappeared. I have to refresh the page to make everything appear again.
URL: https://eu-central-1.console.aws.amazon.com/systems-manager/session-manager/sessions?region=eu-central-1
I think it is a bug and needs to be fixed or am I the only one who experiences this?
Best Regards,
Abdullah Khawer
Accepted AnswerAWS Systems Manager
1
answers
1
votes
8
views
asked 5 months ago
AWS Systems Manager Parameter Store - charges for decryption
I use `aws-sdk` gem for my rails project to retrieve data from Parameter Store.
Aws documentation says that `There is no charge from Parameter Store to create a SecureString parameter, but charges for use of AWS KMS encryption do apply` - which I understand
To retrieve any parameters(string or secure string) I use the following code
```
Aws::SSM::Client.new(
region: region
).get_parameter(
name: parameter_id,
with_decryption: true
).to_h
```
As you can see I pass `with_decryption: true` to get the parameter, regardless it is a secure string or not.
My doubt is does it charge me if I use `with_decryption: true` while retrieving string parameter?
Should I omit `with_decryption: true` when I retrieve a string parameter so that the AWS system manager does not use unnecessary decryption?
Or does the AWS system manager just skip `with_decryption: true` if the parameter is not a secure string?
Accepted AnswerAWS Systems Manager
1
answers
0
votes
7
views
asked 5 months ago
"Signature not yet current" in test environment
In an AWS test environment, our testers frequently need to change the date/time on instances as part of their test suites. Unfortunately, this appears to break Session Manager authentication. The SSM agent generates errors such as:
2021-05-27 18:58:54 ERROR {HandleAwsError @ awserr.go.49} {ssm-agent-worker} {HealthCheck} error when calling AWS APIs. error details - InvalidSignatureException: Signature not yet current: 20210527T175854Z is still later than 20210430T180355Z (20210430T175855Z + 5 min.)
status code: 400, request id: caaa36f2-c644-4c91-b461-0dbd8a51774e
In the above case, the (Windows 10) instance's clock was set to a future date. Is there any configuration option that would allow us to bypass date-based checks during authentication? Presumably this is an SSL certificate issue.
I note from the AWS SDK that certain authentication options allow for a maximum clock drift of five minutes. Does this apply here?
In short: is there any way to keep Session Manager available despite changes to the system clock?
Accepted AnswerAWS Systems Manager
3
answers
0
votes
69
views
asked a year ago
Does Systems Manager Patch Manager allow patching across multiple accounts and regions?
Customer is wondering how to patch their servers across their AWS organization. They saw the following blog that explains how to do this with security hub, but they were wondering if there is a simpler way to define patch groups across accounts and regions?
https://aws.amazon.com/blogs/mt/multi-account-patch-compliance-with-patch-manager-and-security-hub/
Accepted AnswerAWS Systems Manager
1
answers
0
votes
24
views
Session Manager for EC2 without internet access
I just created a EC2 inside a fully private VPC (without IGW, without NAT, no internet access at all), and follow the instructuion to create endpoints. As a test result, what I found is I can't connect to this EC2 using session manager via browser
Here's the link to the instructions I've followed,
https://aws.amazon.com/premiumsupport/knowledge-center/ec2-systems-manager-vpc-endpoints/
To verify and compare, then I just created 2 cloudformationized environment to make sure I am using same EC2 AMI, Same IAM Profile, Same endpoints and endpoint SG policy (allow all traffics), same VPC enableDNS settings, same ACL (allow all traffic). The only difference is one of the EC2 have outbound internet access.
The test result is:
**Only EC2 have outbount internet access can be connected using session manager via browser.**
Is that correct ?
Accepted AnswerAWS Systems Manager
1
answers
0
votes
25
views
asked a year ago
State Manager vs Maintenance Window
Hello,
Can someone please show some light on me with the difference between State Manager vs Maintenance Window ? As I see both oh them require an SSM Document, Targets and a Schedule; so why would you go with one or the other?
Thank you.
Accepted AnswerAWS Systems Manager
3
answers
0
votes
2
views
asked 2 years ago