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
EFS throws a warning when it shouldn't (I think) #8189
Comments
@jliebrand thanks for reporting, it looks as a good call. At first we decided to stick to string notation, as I falsely thought (see: #8042 (comment) ) it's only with string we can setup IAM access right properly, but it appers it's not true (we can also pass CF instructions to In light of that we definitely welcome PR that will improve recognized support for /cc @pgrzesik |
No worries - It's not blocking me, so realistically I'm not going to have time for a PR, but if it does, I'll ping you. However, I do have a different question. I used the example cloudformation to create a VPC and got that to work. However, I need my lambdas to not only access the EFS, but also the internet. Which looks like I need a NAT gateway also? This is quickly snowballing in to way more configuration than I had hoped for :-( I'm now trying to use https://www.serverless.com/plugins/serverless-vpc-plugin which gets me a VPC and a NAT gateway, but if I put both the EFS and the lambda on the same subnet and security group, it fails to mount the EFS (Status Code: 408; Error Code: EFSMountConnectivityException). Does anyone have any examples on how to get a VPC set up that allows both access to the EFS and outgoing requests to the internet? (my lambdas need to download data from the internet and put it in the EFS) |
@jliebrand Thanks a lot for reporting this. @medikoo thanks for tagging me here. During work on #8164 I realized that there's nothing that blocks us from supporting CF instructions what is now also confirmed by @medikoo Given that I think that implementing support for that is a great idea. I would love to work on adding that at the end of next week/next weekend if no one else picks it up until then 💯 As for your issue, @jliebrand, I'm not really familiar with |
@jliebrand for general questions best if you see https://forum.serverless.com/ or https://www.serverless.com/slack I do not have a direct answer for that.
@pgrzesik great thanks! I think it's probably be as easy as switching chosen definition from |
It is also throwing a warning in the following instance, when using pseudo parameters: serverless.yml
warning:
|
@corydorning53 |
Maybe I misunderstood the docs then. I thought the pseudo parameters were supported. They have been working. Should I not be using them in my serverless config?
…________________________________
From: Mariusz Nowak ***@***.***>
Sent: Tuesday, October 5, 2021 2:46:14 PM
To: serverless/serverless ***@***.***>
Cc: Dorning, Cory ***@***.***>; Mention ***@***.***>
Subject: Re: [serverless/serverless] EFS throws a warning when it shouldn't (I think) (#8189)
CAUTION EXTERNAL EMAIL
DO NOT open attachments or click on links from unknown senders or unexpected emails
@corydorning53<https://github.com/corydorning53> Fn::Sub is currently not supported. Please open a new issue if you want such support
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#8189 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AQCYEAUUEMXNPIW6K573USLUFNBXNANCNFSM4QYHRVYA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
CAUTION EXTERNAL EMAIL
DO NOT open attachments or click on links from unknown senders or unexpected emails
This e-mail transmission contains information that is confidential and may be privileged.
It is intended only for the addressee(s) named above. If you receive this e-mail in error,
please do not read, copy or disseminate it in any manner. If you are not the intended
recipient, any disclosure, copying, distribution or use of the contents of this information
is prohibited. Please reply to the message immediately by informing the sender that the
message was misdirected. After replying, please erase it from your computer system. Your
assistance in correcting this error is appreciated.
|
@corydorning53 Pseudo parameters are supported, what's not supported is |
Is there a way to use pseudo parameters in this context without Sub?
…________________________________
From: Mariusz Nowak ***@***.***>
Sent: Tuesday, October 5, 2021 2:59:34 PM
To: serverless/serverless ***@***.***>
Cc: Dorning, Cory ***@***.***>; Mention ***@***.***>
Subject: Re: [serverless/serverless] EFS throws a warning when it shouldn't (I think) (#8189)
CAUTION EXTERNAL EMAIL
DO NOT open attachments or click on links from unknown senders or unexpected emails
@corydorning53<https://github.com/corydorning53> Pseudo parameters are supported, what's not supported is Fn::Sub construct in context of fileSystemConfig
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#8189 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AQCYEAXVZB5DEPJXS2SXNGDUFNDJNANCNFSM4QYHRVYA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
CAUTION EXTERNAL EMAIL
DO NOT open attachments or click on links from unknown senders or unexpected emails
This e-mail transmission contains information that is confidential and may be privileged.
It is intended only for the addressee(s) named above. If you receive this e-mail in error,
please do not read, copy or disseminate it in any manner. If you are not the intended
recipient, any disclosure, copying, distribution or use of the contents of this information
is prohibited. Please reply to the message immediately by informing the sender that the
message was misdirected. After replying, please erase it from your computer system. Your
assistance in correcting this error is appreciated.
|
Probably a lack of understanding on my part :)
…________________________________
From: Dorning, Cory ***@***.***>
Sent: Tuesday, October 5, 2021 3:01:29 PM
To: serverless/serverless ***@***.***>; serverless/serverless ***@***.***>
Cc: Mention ***@***.***>
Subject: Re: [serverless/serverless] EFS throws a warning when it shouldn't (I think) (#8189)
Is there a way to use pseudo parameters in this context without Sub?
________________________________
From: Mariusz Nowak ***@***.***>
Sent: Tuesday, October 5, 2021 2:59:34 PM
To: serverless/serverless ***@***.***>
Cc: Dorning, Cory ***@***.***>; Mention ***@***.***>
Subject: Re: [serverless/serverless] EFS throws a warning when it shouldn't (I think) (#8189)
CAUTION EXTERNAL EMAIL
DO NOT open attachments or click on links from unknown senders or unexpected emails
@corydorning53<https://github.com/corydorning53> Pseudo parameters are supported, what's not supported is Fn::Sub construct in context of fileSystemConfig
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#8189 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AQCYEAXVZB5DEPJXS2SXNGDUFNDJNANCNFSM4QYHRVYA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
CAUTION EXTERNAL EMAIL
DO NOT open attachments or click on links from unknown senders or unexpected emails
This e-mail transmission contains information that is confidential and may be privileged.
It is intended only for the addressee(s) named above. If you receive this e-mail in error,
please do not read, copy or disseminate it in any manner. If you are not the intended
recipient, any disclosure, copying, distribution or use of the contents of this information
is prohibited. Please reply to the message immediately by informing the sender that the
message was misdirected. After replying, please erase it from your computer system. Your
assistance in correcting this error is appreciated.
|
Once |
I am using the new support for EFS. Another stack outputs the ARN of the EFS and I use it as follows
While this works, it throws the following warning during deploy:
Looks like the validation doesn't realise values can be imported?
The text was updated successfully, but these errors were encountered: