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

Failure to Create Resource Using !Ref #3545

Closed
ishallbethat opened this issue May 2, 2017 · 2 comments
Closed

Failure to Create Resource Using !Ref #3545

ishallbethat opened this issue May 2, 2017 · 2 comments

Comments

@ishallbethat
Copy link

Hello
I'm trying to create resource, but i got error as below. Does serverless framework here support !Ref ?

`PS D:\code-repository\gabrielcv\cvservice> serverless deploy

Y A M L Exception --------------------------------------

 unknown tag !<!Ref> in "D:\code-repository\gabrielcv\cvservice\serverless.yml"
 at line 159, column 32:
            RestApiId: !Ref
 api
                               ^

 For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

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: win32
Node Version: 6.9.1
Serverless Version: 1.10.2
`

``

@HyperBrain
Copy link
Member

The "!" notation is not supported currently in serverless.yml. You have to use the object based Ref notation.

myProp:
  Ref: myRefId

@pmuens
Copy link
Contributor

pmuens commented May 2, 2017

Thanks for jumping in @HyperBrain 👍

Yes, that's currently not supported. We track the progress in this related issue: #3184

Thanks for opening @IamGabrielWu

@pmuens pmuens closed this as completed May 2, 2017
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

3 participants