question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

functions with dot in name

See original GitHub issue

Hi there,

you must handle dots in function names. AWS does not allow them.

How to reproduce

serverless create --template aws-java-maven --path my-lambda-sls cd my-lambda-sls/ sed -i ‘s/hello:/hello.test:/’ serverless.yml mvn clean package serverless deploy -v

ends in

Serverless: Packaging service… Serverless: Uploading CloudFormation file to S3… Serverless: Uploading artifacts… Serverless: Updating Stack…

Serverless Error ---------------------------------------

 Template format error: Resource name Hello.testLogGroup
 is non alphanumeric.

Get Support -------------------------------------------- Docs: docs.serverless.com Bugs: github.com/serverless/serverless/issues Forums: forum.serverless.com Chat: gitter.im/serverless/serverless

Your Environment Information ----------------------------- OS: linux Node Version: 6.9.1 Serverless Version: 1.13.2`

Best regards

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
horike37commented, Oct 10, 2018

@07Gond Yes, this is still an issue. Would be great if you can take care of it 👍

1reaction
HyperBraincommented, May 23, 2017

@pmuens I think this can be solved by changing the name normalization functions in naming. They should just normalize dots away to create compliant logical ids. BTW: This should be implicitly non-breaking as functions with dots do currently not work anyway 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

python: variables in a function with dot preceded by the ...
I need to understand this concept wherein we can use the dot (.) in the variable name within a function definition.
Read more >
The Dot Notation in Python - AskPython
In simple words, the dot (.) notation is a way to access the attribute and methods of each method of instances of different...
Read more >
dot (.) operator in C/C++ - GeeksforGeeks
The dot (.) operator is used for direct member selection via object name. In other words, it is used to access the child...
Read more >
Why do some methods use dot notation when others don't?
Methods are blocks of code that are associated with an object. They are called using dot notation, the object name first: obj.method(). sort(), ......
Read more >
20 Dot prefix - Tidyverse design guide
The apply family tends to use uppercase function names for the same reason. Unfortunately the functions are a little inconsitent which makes it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found