The following returns the error message Resource with id [SampleFunction] is invalid. Type of property 'VpcConfig' is invalid. though appears to be valid.
VpcConfig:
SecurityGroupIds:
- !Ref FunctionSecurityGroup
SubnetIds:
- !ImportValue "aroundme-private-subnet"
When I modify the block to reference the actual values (as follows), template works as expected, thus this seems to be a transform issue.
VpcConfig:
SecurityGroupIds:
- "sg-ABC123"
SubnetIds:
- "subnet-ABC123"
Known bug. Related to #22.
We are working on resolving this now. We will update this thread once its resolved
I literally preprocess my templates inserting the proper info.
-Joe
Sent via mobile.
On Feb 15, 2017 10:49 PM, "Denis Loginov" notifications@github.com wrote:
Is there any workaround for now? Perhaps substitution at a higher level?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/serverless-application-model/issues/57#issuecomment-280223363,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA-bx8uv6ilyLaxUTslq762rDMRuCV5Iks5rc8c7gaJpZM4Le2dZ
.
I'm doing everything through CodePipeline now and strangely, it doesn't appear to have this problem.
EDIT: haven't tested with ImportValue though, it may be the only thing still not supported.
EDIT2: Seems like deletion of ENI still doesn't work if there are referenced resources (even when references are resolved correctly), see #64
@dinvlad that's because we just recently deployed the fix :-) Intrinsic functions should just work, except for ImportValue specifically in a few places - https://github.com/awslabs/serverless-application-model/blob/master/HOWTO.md#using-intrinsic-functions
Yep, working correctly now!
Confirmed, now working.
Most helpful comment
@dinvlad that's because we just recently deployed the fix :-) Intrinsic functions should just work, except for ImportValue specifically in a few places - https://github.com/awslabs/serverless-application-model/blob/master/HOWTO.md#using-intrinsic-functions