Configurando credenciais de acesso a APK da AWS em servidores Apache e NGINX utilizando sistemas Linux

Foto de Manuel Geissinger no Pexels

Definindo como variáveis de ambiente

AWS_ACCESS_KEY_ID=<<your_access_key_id>>
AWS_SECRET_ACCESS_KEY=<<your_secret_access_key>>

Definindo as credencias de acesso diretamente no sistema

Configurando as credenciais de acesso no Apache

sudo mkdir /usr/share/httpd/.aws
sudo touch /usr/share/httpd/.aws/credentials
sudo nano /usr/share/httpd/.aws/credentials
[default]
aws_access_key_id = <<your_access_key_id>>
aws_secret_access_key = <<your_secret_access_key>>
sudo systemctl restart httpd

Configurando as credenciais de acesso no NGINX

sudo mkdir /var/lib/nginx/.aws
sudo touch /var/lib/nginx/.aws/credentials
sudo nano /var/lib/nginx/.aws/credentials
[default]
aws_access_key_id = <<your_access_key_id>>
aws_secret_access_key = <<your_secret_access_key>>
sudo systemctl restart nginx

--

--

Desenvolvedor Front-end e UI/UX Designer.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Marcelo Albuquerque

Marcelo Albuquerque

Desenvolvedor Front-end e UI/UX Designer.