# Warnings for ignored/malformed objects in serverless.yml

**URL:** <https://forum.serverless.com/t/warnings-for-ignored-malformed-objects-in-serverless-yml/3618>\
**Category:** Serverless Framework\
**Created:** [January 27, 2018, 8:09pm UTC](https://forum.serverless.com/t/warnings-for-ignored-malformed-objects-in-serverless-yml/3618 "2018-01-27T20:09:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eliasisrael](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/eliasisrael/32/840_2.png) [@eliasisrael](https://forum.serverless.com/u/eliasisrael)\
**Post date:** [January 27, 2018, 8:09pm UTC](https://forum.serverless.com/t/warnings-for-ignored-malformed-objects-in-serverless-yml/3618/1 "2018-01-27T20:09:12Z")

</div>

A couple of times, I’ve gotten snagged by a misspelling or incorrect capitalization of an identifier in a serverless.yml file.

Example: If you put this vpc configuration in your provider block, it will get ignored:

vpc:  
SecurityGroupIds:  
- sg-xxxxx  
SubnetIds:  
- subnet-xxxx

Why? Because “SecurityGroupIds” and “SubnetIds” should not have an initial upper-case letter. It’s “securityGroupIds”, etc.

Which is OK, dumb mistake.

But couldn’t serverless issue a warning when the expected fields of ‘vpc’ are not found? or when an object like this ends up being ignored because it’s malformed? Would save a lot of time.

---

<div class="post-metadata">

**Author:** ![AnthonyC](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/anthonyc/32/1294_2.png) [@AnthonyC](https://forum.serverless.com/u/AnthonyC)\
**Post date:** [January 31, 2018, 9:37pm UTC](https://forum.serverless.com/t/warnings-for-ignored-malformed-objects-in-serverless-yml/3618/2 "2018-01-31T21:37:57Z")

</div>

Serverless already use AWS validateTemplate API to validate CF (see: [https://github.com/serverless/serverless/issues/4511](https://github.com/serverless/serverless/issues/4511)). Failing that, it’d be an issue that AWS APIs should be fixing.

---

<div class="post-metadata">

**Author:** ![eliasisrael](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/eliasisrael/32/840_2.png) [@eliasisrael](https://forum.serverless.com/u/eliasisrael)\
**Post date:** [February 27, 2018, 9:59pm UTC](https://forum.serverless.com/t/warnings-for-ignored-malformed-objects-in-serverless-yml/3618/3 "2018-02-27T21:59:45Z")

</div>

Which would work if the typo I mentioned was in the resources block, presumably. But when serverless builds the compiled cf template, it simply skips anything it doesn’t understand, which is why no error is emitted.
