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?

asked a year ago298 views
2 Answers
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
answered a year ago
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
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions