aws-ssm

AWS Systems Manager Parameter Store: Using StringList as Key Value Pairs in Java (Lambda)

◇◆丶佛笑我妖孽 提交于 2021-02-10 13:16:34
问题 Im using Api Gateway and AWS Lambda and AWS RDS to build an API. My Lambda Function Code is Java. Currently im using the AWS Systems Manager Parameter Store successfully to connect to my Database. Therefore I created a parameter called "connection" which has the type String and holds my complete connection url. In Lambda functions i can access this parameter successfully this way: GetParameterRequest parameterRequest = new GetParameterRequest().withName("connection").withWithDecryption(false)

AWS Systems Manager Parameter Store: Using StringList as Key Value Pairs in Java (Lambda)

橙三吉。 提交于 2021-02-10 13:16:15
问题 Im using Api Gateway and AWS Lambda and AWS RDS to build an API. My Lambda Function Code is Java. Currently im using the AWS Systems Manager Parameter Store successfully to connect to my Database. Therefore I created a parameter called "connection" which has the type String and holds my complete connection url. In Lambda functions i can access this parameter successfully this way: GetParameterRequest parameterRequest = new GetParameterRequest().withName("connection").withWithDecryption(false)

AWS Systems Manager Parameter Store: Using StringList as Key Value Pairs in Java (Lambda)

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-10 13:14:53
问题 Im using Api Gateway and AWS Lambda and AWS RDS to build an API. My Lambda Function Code is Java. Currently im using the AWS Systems Manager Parameter Store successfully to connect to my Database. Therefore I created a parameter called "connection" which has the type String and holds my complete connection url. In Lambda functions i can access this parameter successfully this way: GetParameterRequest parameterRequest = new GetParameterRequest().withName("connection").withWithDecryption(false)

List all parameters in AWS SSM Parameter Store

大憨熊 提交于 2021-02-08 14:16:33
问题 How do I list all parameters in the AWS Systems Manager (SSM) Parameter Store? I am using the AWS CLI. I can store them with aws ssm put-parameter . I can fetch them with aws ssm get-parameter . I can list all documents with aws ssm list-documents , but I do not see a corresponding list-parameters function. 回答1: I think what you want is aws ssm describe-parameters docs 回答2: You are looking for describe-parameters. 来源: https://stackoverflow.com/questions/55011890/list-all-parameters-in-aws-ssm

Environment variables with AWS SSM Run Command

半城伤御伤魂 提交于 2021-01-20 12:35:28
问题 I am using AWS SSM Run Command with the AWS-RunShellScript document to run a script on an AWS Linux 1 instance. Part of the script includes using an environment variable. When I run the script myself, everything is fine. But when I run the script with SSM, it can't see the environment variable. This variable needs to be passed to a Python script. I had originally been trying os.environ['VARIABLE'] to no effect. I know that AWS SSM uses root privileges and so I have put a line exporting the

Why am I getting an error when querying SSM parameters via get-parameters-by-path?

孤街醉人 提交于 2020-12-15 05:19:56
问题 I am trying to query some SSM parameters by path (within Gitbash): aws --region eu-west-2 --profile some-profile ssm get-parameters-by-path --path /prefix/prefix2 There are a number of parameters that exist which match this prefix, e.g. /prefix/prefix2/p1 /prefix/prefix2/p2 ... I am getting the following error back: An error occurred (ValidationException) when calling the GetParametersByPath operation: The parameter doesn't meet the parameter name requirements. The parameter name must begin

Why am I getting an error when querying SSM parameters via get-parameters-by-path?

故事扮演 提交于 2020-12-15 05:18:22
问题 I am trying to query some SSM parameters by path (within Gitbash): aws --region eu-west-2 --profile some-profile ssm get-parameters-by-path --path /prefix/prefix2 There are a number of parameters that exist which match this prefix, e.g. /prefix/prefix2/p1 /prefix/prefix2/p2 ... I am getting the following error back: An error occurred (ValidationException) when calling the GetParametersByPath operation: The parameter doesn't meet the parameter name requirements. The parameter name must begin

Why am I getting an error when querying SSM parameters via get-parameters-by-path?

半城伤御伤魂 提交于 2020-12-15 05:18:07
问题 I am trying to query some SSM parameters by path (within Gitbash): aws --region eu-west-2 --profile some-profile ssm get-parameters-by-path --path /prefix/prefix2 There are a number of parameters that exist which match this prefix, e.g. /prefix/prefix2/p1 /prefix/prefix2/p2 ... I am getting the following error back: An error occurred (ValidationException) when calling the GetParametersByPath operation: The parameter doesn't meet the parameter name requirements. The parameter name must begin

Accessing AWS SSM Parameters in NodeJS Lambas

拥有回忆 提交于 2020-12-12 12:22:48
问题 I am able to retrieve data from the AWS SSM Parameter Store locally in NodeJS but am unable to when I move my code to Lambdas. I've hunted and not found many examples of setting up Lambdas with NodeJS that aren't using the "Serverless" framework. I know I'm missing something simple. I just don't know what yet. I've given my lambda's IAM policy these permissions: "Effect": "Allow", "Action": [ "ssm:PutParameter", "ssm:GetParameter" ], "Resource": [ "arn:aws:ssm:region:account-id:parameter/Name