You specify a CloudFormation resource of type Custom::Auth0Connection
.
API:
Type: Custom::Auth0Connection
Properties:
ServiceToken: !Sub 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:cfn-auth0-provider'
Value:
name: my-user-name-password
strategy: auth0
enabled_clients:
- !Ref CustomCfnProviderClientId
- !Ref Client
In the Value
you can specify all of the properties for the Create a connection operation.
If you wish the custom cloudformation provider to be able to add users, add the client id of the provider to the enabled_clients. See [Installation][#Installation].