How to Connect to RDS MySQL using AWS Secrets Manager from EC2 and Lambda by AWS Avinash Reddy

Поділитися
Вставка
  • Опубліковано 16 лис 2024

КОМЕНТАРІ • 7

  • @villaran9295
    @villaran9295 4 місяці тому

    Thanks for the tutorial! In this case, the EC2 has a role attached to access to the Secrets Manager? How can I protect the Secrets Manager to only accept connections from a particular machine? Thank you :)

    • @avizway
      @avizway  4 місяці тому +1

      Encrypt the secreta using a kms cmk and provide access to only specific role to decrypt the Secret.

  • @defendersart3051
    @defendersart3051 6 місяців тому

    Is the process same for the PostgreSQL? Actually I was unable to deploy my application (django todo app).Bcoz, my credentials are in .env file (environment variable) and its not included in the image which is uploaded in ECR. (problem where to keep my .env in AWS && how to connect .env AND db while deployment). Your guidance will be remembered forever.

    • @avizway
      @avizway  6 місяців тому +1

      Hi, yes, process almost similar for any RDS DB engine.
      You have 3 options to configure
      1. Use Parameter store to store sensitive info and access it from ec2/ecs.
      2. Store it in secrets manager and access it from your application.
      3. if you are using batch to process your ecr image, you can configure your info as Environment variables.

    • @defendersart3051
      @defendersart3051 6 місяців тому

      @@avizway Thanks so much for this precious info!! I would like to go with Parameter Store,, but for that I need guidance or tutorial. As a beginner AWS seems to be divided in various services. (Many things to be touched in sequence) Otherwise, I've to opt for paid AWS support.