aws-samples / ec2-classic-resource-finder

This script enables the identification of resources running in Amazon EC2 Classic
MIT No Attribution
131 stars 82 forks source link

ApplicationName for ElasticBeanstalk Environments may contains spaces #10

Closed mpidlisnyi closed 2 years ago

mpidlisnyi commented 3 years ago

Projects in our account contain spaces in ElasticBeanstalk application names. Classic-Resource-Finder.sh returns unexpected results in this case. My fix solves this issue by replacing separation symbol.

pgarpgar commented 3 years ago

I encountered the same problem, came to the same solution, except I used ~.

I couldn't find documentation re App Name character constraints, but an empirical test via the console produced this error:

1 validation error detected: Value 'fo~o' at 'applicationName' failed to satisfy constraint: Member must satisfy regular expression pattern: ^[\p{Alnum}\s"\'_.\,+-[]()\]+$

That regex indicates that | (or ~) cannot appear in App Names, and thus should work as a fix.