Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raise ValueError('Name "%s" not alphanumeric' % self.title) #2084

Open
sid21rane opened this issue Oct 19, 2022 · 0 comments
Open

raise ValueError('Name "%s" not alphanumeric' % self.title) #2084

sid21rane opened this issue Oct 19, 2022 · 0 comments

Comments

@sid21rane
Copy link

sid21rane commented Oct 19, 2022

Hi,

I am trying to create an empty DB Cluster. While running "pipenv run invoke compile" I get "raise ValueError('Name "%s" not alphanumeric' % self.title)" for MasterUsername / MasterUserPassword.

I am trying to get the value from CCM parameter store but I get this error on the line where I am declaring it as a Parameter. Can someone please help.

---code for the same---

PG_Username = Parameter(
"PG_Username",
Description="PG User Name for RDS",
Type="String",
Default="/dev/unixyz/ordering/rds/PGUsername",
)
template.add_parameter(PG_Username)

Mappings

template.add_mapping(
    "MstrUsername",
    {
        "dev": {
            "ARN": Sub("arn:aws:ssm:eu-west-1:1234567890:parameter${PG_Username}")
        },
    }
)

Calling it in DB Cluster definition

MasterUsername=FindInMap("MstrUsername", Ref(EnvironmentName), "ARN"),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant