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

is_valid_request #6

Open
davidholsgrove opened this issue Jun 24, 2019 · 1 comment
Open

is_valid_request #6

davidholsgrove opened this issue Jun 24, 2019 · 1 comment

Comments

@davidholsgrove
Copy link

I used version 0.5.2 of this custom resource to create a postgres db, but had used a hyphen in the database user and name. It didn't look like is_valid_request() prevented that...

My cloudformation stack hung on create. (I also didn't have an egress on the lambda security group which allowed access to SSM, which caused the password parameter retrieval to hang)

I then updated to version 0.5.4 (with python3.7 as per #5) but the deletes failed with the following;

[DEBUG] sending response to https://cloudformation-custom-resource-response-apsoutheast2.s3-ap-southeast-2.amazonaws.com/arn%3Aaws%3Acloudformation%[--snip--] ->
{
    "Status": "SUCCESS",
    "Reason": "invalid resource properties: 'db-test' does not match '^[_A-Za-z][A-Za-z0-9_$]*$'",
    "StackId": "arn:aws:cloudformation:ap-southeast-2:XXXXXXXXXXX:stack/CFN-App-Resources-dbDatabaseAndUser-JQ099EO81N57/[--snip--]",
    "RequestId": "XXXXXXX-XXXX-XXXX-XXXXXXXX",
    "LogicalResourceId": "DatabaseAndUser",
    "Data": {},
    "PhysicalResourceId": "CFN-App-Resources-dbDatabaseAndUser-JQ099EO81N57-DatabaseAndUser-17SKXEL5JB7FZ"
}

Just want to check if the is_valid_request() here https://github.com/binxio/cfn-resource-provider/blob/53a6afac8361393b2ae219c3a355e43db346e15e/cfn_resource_provider/resource_provider.py#L310 is expected to have caught that invalid property before the custom resource created?

@mvanholsteijn
Copy link
Member

I used version 0.5.2 of this custom resource to create a postgres db, but had used a hyphen in the database user and name. It didn't look like is_valid_request() prevented that...

that is really weird. Let me check that out for you.

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

2 participants