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?

gefragt vor einem Jahr312 Aufrufe
2 Antworten
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
beantwortet vor einem Jahr
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
beantwortet vor 3 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen