AWS secrets manager documentation help

0

Hello everyone, I've never used AWS on a deep level and I need your help.

Link.

I found this document very helpful to my use case, but I have no clue where to execute/download what.

for example step 1 asks you to build secrets manager binary. but it does not tell you where, locally? on AWS? it mentions AL2023, but I didn't know AWS has a file system.

and in step 2 it says to "use the install script" (which is a Bash file in the GitHub repo) but how do I use it?

I need help understanding how and where to use these instruction. your help is greatly appreciated.

Thank you

1 Respuesta
2

Hello.

AWS Secrets Manager Agent is an agent that manages and caches secrets in a computing environment.
In other words, the environment that needs to be installed is the server or PC running the application.

The repository used in step 2 is the GitHub repository below.
https://github.com/aws/aws-secretsmanager-agent/tree/main

You can install it using the following installation script in this repository.
https://github.com/aws/aws-secretsmanager-agent/blob/main/aws_secretsmanager_agent/configuration/install

profile picture
EXPERTO
respondido hace 4 meses
profile picture
EXPERTO
revisado hace 4 meses
profile pictureAWS
EXPERTO
revisado hace 4 meses
  • Ok, thanks. but where do I run it and how? can you please help me?

  • For example, if you are running an application on Amazon Linux 2023 EC2, you can install it as follows. Please connect to EC2 using SSH etc. and execute the following commands.

    sudo su -
    
    # Run it if you haven't installed git on EC2.
    sudo dnf install git -y
    
    # Please clone from the Secrets Manager Agent repository.
    sudo git clone https://github.com/aws/aws-secretsmanager-agent.git
    cd aws-secretsmanager-agent/
    sudo dnf -y groupinstall "Development Tools"
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    . "$HOME/.cargo/env"
    cargo build --release
    
    # You can confirm that a file called "aws_secretsmanager_agent" has been created.
    ls target/release/ -l
    
    mv target/release/aws_secretsmanager_agent aws_secretsmanager_agent/configuration/aws_secretsmanager_agent
    cd aws_secretsmanager_agent/configuration/
    bash install
    
    
  • I run my server in elastic beanstalk which manages EC2 instances, is this possible there?

  • It can also be used with ElasitcBeanstalk's EC2, but since ElasitcBeanstalk's EC2 is supposed to be managed by AutoScaling, you need to run the installation command on the EC2 you want to use as the AMI used by AutoScaling. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.managing.as.html
    You can create a custom AMI by following the steps in the document below. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.customenv.html

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas