-
Couldn't load subscription status.
- Fork 2.4k
Closed
Description
I am currently deploying an API to multiple environments (prod, test, dev). I would like to turn off "Auth" in dev so we can focus on developing post-login features in that environment. However it is not possible to conditionally add the "Auth" property to my Api resource because of how we are validating:
Therefore something like this is not possible currently:
Api:
Type: AWS::Serverless::Api
Properties:
...
Auth:
Fn::If:
- IsDev
- !Ref "AWS::NoValue"
- DefaultAuthorizer: CognitoAuthorizer
Authorizers:
CognitoAuthorizer:
UserPoolArn: !GetAtt UserPool.Arn
Identity:
Header: Authorization
ValidationExpression: "."
mzguimaraes, nielslaukens, ruedih and GrahamMThomas
Metadata
Metadata
Assignees
Labels
No labels