Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

106
Visualizações
Setting Up Amazon aws Credentials for S3 php SDK 3 on a Share Hosting

I am installing Amazon S3 php SDK V3 on a shared hosting. I have so far done everything the aws php sdk v3 docs says apart from where and how to store the credentials

AWS_ACCESS_KEY_ID

AWS_SECRET_ACCESS_KEY

The documentation is not clear for me. This is my folder structure

home/sample/public_html/ /*index.php the root of my website*/
home/sample/public_html/media/aws/ /*s3 php v3 sdk stored here*/
home/sample/public_html/media/  /*my custom php script for upload stored here*/

My problem is basically 1) WHERE to store the credentials and 2) HOW to store the credentials

I will be glad if anyone can help thank you.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

The start of the docs link you have posted says where to put these credentials:

The file should be placed at ~/.aws/credentials, where ~ represents your HOME directory.

With the structure of the file being.

The format of the AWS credentials file should look something like the following:

[default] aws_access_key_id = YOUR_AWS_ACCESS_KEY_ID aws_secret_access_key = YOUR_AWS_SECRET_ACCESS_KEY

[project1] aws_access_key_id = ANOTHER_AWS_ACCESS_KEY_ID aws_secret_access_key = ANOTHER_AWS_SECRET_ACCESS_KEY Each section (e.g., [default], [project1]), represents a separate credential profile. Profiles can be referenced from a SDK configuration file, or when you are instantiating a client, using the profile option:

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda