AWS Systems Manager (SSM) Parameter Store and AWS Lambda

Поделиться
HTML-код
  • Опубликовано: 5 авг 2024
  • In this video we will learn about AWS Systems Manger (SSM) Parameter Store or in short SSM parameters, and how to make use of it in a Lambda function.
    We will create an SSM parameter that contains a URL to an API and retrieve that parameter in a Lambda function, which can return that URL to us.
    Timestamps:
    - Intro: 0:00​
    - What is SSM Parameter Store?: 0:33
    - Create an SSM Parameter: 2:50
    - Create the Lambda function: 4:36
    - Time for testing: 6:16
    Code example: github.com/endre-synnes/pytho...
    AWS documentation: docs.aws.amazon.com/systems-m...
    Subscribe button animation: touchtechnologyreview.com/sub...
    Follow me on Github: github.com/endre-synnes

Комментарии • 15

  • @RST-SUMA-RAMESH-THARUN
    @RST-SUMA-RAMESH-THARUN 2 года назад

    Thank you for the video. Explanation is very clear and easy to understand. Keep up the good work

  • @arpankhetani7818
    @arpankhetani7818 2 года назад

    Thank you for the explaining , neat and simple

  • @rogueghost
    @rogueghost 2 года назад

    I love the hands on parts. You should consider also making videos about using CloudFormation templates to deploy Lambdas and other resources etc.

    • @EndreSynnes
      @EndreSynnes  2 года назад

      Thank you so much!😄 Yes, IaC (using Terraform, Serverless, CloudFormation, etc) is a topic that I find very interesting. I have a video series about The Serverless framework ( ruclips.net/video/5xBHeN5OOzI/видео.html ) where I use it to deploy lambda functions, API gateways etc. I will try to make more videos like these in the future. If CloudFormation templates itself is a topic that you find interesting, I can try to make some videos about that as well. Maybe integrate it with the Serverless framework, since that is a very common use case. Or just write native CloudFormation templates 🙌
      Thank you for the tip, much appreciated!😄

  • @viniciuscordeiro1360
    @viniciuscordeiro1360 2 года назад

    good video!

  • @anujsrivastava2517
    @anujsrivastava2517 2 года назад +1

    Please help its urgent, How can I retreive stored values from parameter store using Java?

    • @EndreSynnes
      @EndreSynnes  2 года назад

      Hi,
      The aws documentation has some examples using Java which should work fine 😊 docs.aws.amazon.com/cdk/v2/guide/get_ssm_value.html

  • @SweetyMittu
    @SweetyMittu 2 года назад

    Hii...How to update ssm parameters from lambda..I have used put_paramete(Name="",Value="",type="",Overwrite="True")...but it showing error

    • @EndreSynnes
      @EndreSynnes  2 года назад

      Hi :)
      Well, it depends on what kind error you get, but by looking at the code you have written: It can be because you have double quotes surrounding the Overwrite statement. This should be a Boolean (True or False) without quotes.
      Another cause to the issue could be that your Lambda execution role don't have the required access to do write operations on SSM parameters. The policy I added in this video have only read access. You should create a custom IAM policy with write access to your SSM parameter and attach it to the Lambda execution role.
      Just as an example:
      {
      "Version": "2012-10-17",
      "Statement": [
      {
      "Effect": "Allow",
      "Action": "ssm:PutParameter",
      "Resource": "arn:aws:ssm:REGION_NAME:YOUR_AWS_ACCOUNT:parameter/YOUR_PARAMETER_NAME"
      }
      ]
      }
      I've tested this code and It should work:
      client = boto3.client('ssm')
      response = client.put_parameter(Name='external-api-url', Value='test put', Overwrite=True)

    • @SweetyMittu
      @SweetyMittu 2 года назад

      @@EndreSynnes thank you...I have fixed the error..one more thing ..curtently we store 100 versions of a parameter after to store one more version it will delete the first inserted. Is there any alternate way

    • @EndreSynnes
      @EndreSynnes  2 года назад

      I see 😃 Parameter Store will only store 100 versions of the same parameter, so yes it will delete the oldest version if you go above that limit. Is there any particular reason you have to store more than 100 versions and still keep the first one? There is a workaround described here (docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-versions.html) as "moving parameter labels", but again you should maybe look into why you would need so many versions in the first place 😊

    • @SweetyMittu
      @SweetyMittu 2 года назад +1

      @@EndreSynnes yes I don't need but just wanted to know if there is any way