Resources: # Allow the custom authorisation header in the production environment CustomAuthorizationHeaderRestriction: Type: AWS::WAF::WebACL Properties: DefaultAction: Type: ALLOW Name: Fn::Join: - "_" - - ${self:custom.domain.domainname} - Authorization - Header - Restriction MetricName: Fn::Join: - "" - - ${self:custom.stage} - ${self:service.name} - Authorization - Header - Restriction Rules: - Action: Type: ALLOW Priority: 1 RuleId: Ref: CustomAuthorizationHeaderRule