Cloud Formation Wordpress database password

0

I'm trying to create a Wordpress blog using AWS's CloudFormation's sample template. I can't figure out the password constraints for the DB Password. It doesn't tell you what they are. Does anyone know?

preguntada hace un año312 visualizaciones
2 Respuestas
0

You should be able to open the CF template in a text editor to check the constraints. I won't know which template you are referring to, but two of the sample templates I checked have the following defined ie. between 8 to 41 characters and alpha numeric

`"DBPassword" : { "NoEcho": "true", "Description" : "The WordPress database admin account password", "Type": "String", "MinLength": "8", "MaxLength": "41", "AllowedPattern" : "[a-zA-Z0-9]*", "ConstraintDescription" : "must contain only alphanumeric characters." }

--Syd `

profile picture
Syd
respondido hace un año
0

Hey gingerbeer I feel your pain on this CloudFormation Wordpress setup. Password constraints can be a real head-scratcher. Here's a workaround: try creating a parameter in your CloudFormation template for the DB password, set the "AllowedPattern" to something like '[a-zA-Z0-9]*' for letters and numbers only. That should give you some leeway without getting too restrictive.

Also, make sure to check the AWS documentation for the specific database engine you're using. They usually have guidelines on password requirements.

On a personal note, I've faced a similar snag before. What worked for me was tweaking the password in the template until it matched the constraints. Trial and error, my friend.

Hang in there... Building stuff in the cloud can be a puzzle, but the satisfaction of solving it is worth it.

dara
respondido hace 3 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas