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?

feita há um ano313 visualizações
2 Respostas
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 há um ano
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 há 3 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas