Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

779
Vistas
PowerShell no reconoce la CLI de AWS instalada en el mismo script

He instalado aws cli usando un script de powershell

 $command = "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12" Invoke-Expression $command Invoke-WebRequest -Uri "https://awscli.amazonaws.com/AWSCLIV2.msi" -Outfile C:\AWSCLIV2.msi $arguments = "/i `"C:\AWSCLIV2.msi`" /quiet" Start-Process msiexec.exe -ArgumentList $arguments -Wait aws --version

Cuando trato de imprimir aws --version da el siguiente error.

 aws : The term 'aws' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + aws + ~~~
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Pude solucionar esto agregando la siguiente línea después de instalar aws cli:

 $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine")

código completo:

 $command = "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12" Invoke-Expression $command Invoke-WebRequest -Uri "https://awscli.amazonaws.com/AWSCLIV2.msi" -Outfile C:\AWSCLIV2.msi $arguments = "/i `"C:\AWSCLIV2.msi`" /quiet" Start-Process msiexec.exe -ArgumentList $arguments -Wait $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") aws --version aws s3 ls
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda