CFNgin prehook responsible for creation of Lambda@Edge functions.
write(context, provider, **kwargs)¶
Writes/Uploads the configured lambdas for Auth@Edge.
Lambda@Edge does not have the ability to allow Environment variables at the time of this writing. In order to configure our lambdas with dynamic variables we first will go through and update a “shared” template with all of the configuration elements and add that to a temporary folder along with each of the individual Lambda@Edge functions. This temporary folder is then used with the CFNgin awsLambda hook to build the functions.
context (cfngin.Context) – The CFNgin context.
provider (cfngin.Provider) – The CFNgin provider.
- Keyword Arguments
client_id (str) – The ID of the Cognito User Pool Client.
cookie_settings (dict) – The settings for our customized cookies.
http_headers (dict) – The additional headers added to our requests.
oauth_scopes (List[str]) – The validation scopes for our OAuth requests.
redirect_path_auth_refresh (str) – The URL path for authorization refresh redirect (Correlates to the refresh auth lambda).
redirect_path_sign_in (str) – The URL path to be redirected to after sign in (Correlates to the parse auth lambda).
redirect_path_sign_out (str) – The URL path to be redirected to after sign out (Correlates to the root to be asked to resigning).
user_pool_id (str) – The ID of the Cognito User Pool.