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

311
Visualizações
Trying to add salts & keys as environment variables in elastic beanstalk (syntax error)

I'm having some problems adding wordpress salts & keys as environment variables in elastic beanstalk (syntax error)

-bash: 1{: command not found
-bash: 8!~+w: command not found
-bash: br}P9^: No such file or directory
-bash: =:JDKbbfk: command not found
-bash: /etc/profile.d/eb_envvars.sh: line 11: unexpected EOF while looking for matching ``'
-bash: /etc/profile.d/eb_envvars.sh: line 21: syntax error: unexpected end of file

Generated secret keys with : https://api.wordpress.org/secret-key/1.1/salt/

enter image description here

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

0

Summary - use alphanumeric salts and keys.

I'm following the guide here and it uses a YAML formatted file to define the salts and keys for WordPress. When creating a new environment, the environment variables are read and loaded correctly. However when it tries to launch the instances it chokes on the variables. I confirmed this when looking through the messages file from the instance logs.

Wondered if I was defining the YAML file correctly, but have seen a number of reports of similar problems. I think this question hits the nail on the head. So I replaced the keys and salts from the WordPress generator with ones from here.

I set the password length to 64 and excluded symbols, included numbers, included lowercase characters, included uppercase characters, included similar characters, excluded ambiguous characters. It came up with strings like these:

S8TZaYb0dFL72A4ZwMKRxlUxmuwhq4UtLQhCCRR584SZ4XwIiQ0fIWu6WptauZ2V
b6wkMN2RtC0g67Wi2oHSYaDAZvyX2ECW98MiczoTHWKTxSK6s3bx9eLq9fkkqtKy

Basically just alphanumeric strings. Once I used those the instances started launching correctly and Elastic Beanstalk was a happy chappy.

So whatever is happening inside that instance requires alphanumeric keys and salts. Other characters may not work.

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