amazon-systems-manager

Accessing Parameter Store from VPC / Lambda

依然范特西╮ 提交于 2021-02-18 11:45:14
问题 My lambda function can access Systems Manager parameters (ssm.getParameter) when NOT in a VPC. When I add the lambda function to my VPC, I lose access to SSM. The function times out. Clearly I am missing a security group setting or something but can't figure it out. What do I need to do to enable lambda access to SSM when running it in my VPC? 回答1: Most likely this is because you're creating your lambda function in the public subnet, Lambda does get public ip address and uses NAT to access

How to export parameters from aws parameter store and import into another account

拟墨画扇 提交于 2020-05-29 03:59:46
问题 on my first aws account I have parameters specified in the following manner: /config/a => value1 /config/b => value2 /config/c/a => value31 /config/c/b => value32 I want to move these to my second aws account. I created these parameters in the parameter store manually. How could I easily copy these values from one account to the other? Using aws ssm get-parameters --names "<param-name>" would be a bit too difficult, since I have way too many parameters. 回答1: May be get-parameters-by-path

AWS Run Command act different than running on server locally

百般思念 提交于 2019-12-31 07:06:21
问题 I am having problems running commands on an EC2 Instance from my Bamboo server. I have a command generated from the Run Command in the AWS Console. I place that command in a script on my bamboo server and run it: aws ssm send-command --document-name "AWS-RunPowerShellScript" --targets '{\"Key\":\"tag:Name\",\"Values\":[\"Auto-Scaling-Group\"]}' --parameters '{\"commands\":[\"$fileEXE = \\\"C:\\\\Program Files (x86)\\\\NUnit\\\\NUnit.ConsoleRunner.3.7.0\\\\tools\\\\nunit3-console.exe\\\\\\\"\"

AWS Run Command act different than running on server locally

房东的猫 提交于 2019-12-02 13:33:17
I am having problems running commands on an EC2 Instance from my Bamboo server. I have a command generated from the Run Command in the AWS Console. I place that command in a script on my bamboo server and run it: aws ssm send-command --document-name "AWS-RunPowerShellScript" --targets '{\"Key\":\"tag:Name\",\"Values\":[\"Auto-Scaling-Group\"]}' --parameters '{\"commands\":[\"$fileEXE = \\\"C:\\\\Program Files (x86)\\\\NUnit\\\\NUnit.ConsoleRunner.3.7.0\\\\tools\\\\nunit3-console.exe\\\\\\\"\",\"$testDll = \\\"C:\\\\TestFramework\\\\TestFramework\\\\Tests\\\\bin\\\\Debug\\\\TESTS.dll\\\"\",\"