-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
Description
Description:
Within the Auth object, trying to use SourceVpcWhitelist and finding that intrinsic functions are causing issues with cloudformation creating or updating a stack.
...
Auth:
DefaultAuthorizer: AWS_IAM
ResourcePolicy:
SourceVpcWhitelist:
- !Ref VPCEndpoint
...
Steps to reproduce the issue:
- Create an Serveless::API with a vpc or vpcendpoint
- Put the above into the Auth section for resource policies
Observed result:
Transform AWS::Serverless-2016-10-31 failed with: Internal transform failure.
cfn-lint returns E0001 Error transforming template: expected string or bytes-like object.
Expected result:
Cloudformation updates stack and is able to resolve the intrinsic functions
Note
If you do not use intrinsic functions like !Sub or !Ref this works fine
I have not tried this on the other options. I have tried with CustomStatements and had no issues
alexvago, glestaris, fairct, duartemendes, henkesde and 8 more