You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module provisions a Lambda@Edge function that can be associated to a
CloudFront distribution to provide OpenID Connect authentication at edge functionality.
Currently, the only supported provider is Microsoft AzureAD.
Usage
module"cloudfront_authorizer" {
source="github.com/chatloop/terraform-aws-cloudfront-auth?ref=v0.2.1"providers={
aws = aws.us-east-1# Ensure you're deploying this module into us-east-1
}
function_name="lambda-edge-azure-auth"# This must be uniquetenant="2765a7ba-9519-4636-9669-35f6558266fe"# Azure Tenant IDclient_id="2d30fa5c-bdbc-4adc-a3fb-86566348159c"# Azure App Client IDclient_secret=var.client_secret# Azure App Client Secret - keep this secretredirect_uri="https://${var.domain_name}/_callback"# CloudFront domain name with /_callback suffix# The duration in hours before re-authenticatingsession_duration=24# optional: default = 168 (7 days)# Enables 301 redirects for directory paths not ending in a forward slash. e.g. www.example.com/about -> www.example.com/about/trailing_slash_redirects_enabled=true# optional: default = false# Appends index.html on to directory paths (e.g. www.example.com/about/ retrieves www.example.com/about/index.html from a backend s3 origin.)simple_urls_enabled=true# optional: default = true# Set to true if you do not wish the function to be deleted at destroy time, and instead just remove the function from the Terraform state.skip_destroy=true# optional: default = false
}