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개 답변
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
전문가
답변함 4달 전
profile picture
전문가
검토됨 4달 전
profile pictureAWS
전문가
검토됨 4달 전
  • 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

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인