https://github.com/ironcore864/tfm-cf-basic-auth-cookie-plant
https://github.com/ironcore864/tfm-cf-basic-auth-cookie-plant
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ironcore864/tfm-cf-basic-auth-cookie-plant
- Owner: IronCore864
- Created: 2019-10-31T10:51:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-31T10:51:49.000Z (over 6 years ago)
- Last Synced: 2025-06-01T02:45:16.348Z (about 1 year ago)
- Language: HCL
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform Module - CloudFront for Basic Auth and Plant Cookie
This CloudFront distribution is basically empty, that when accessing, does a basic auth then plant the cookie for the corresponding top level domain. Used for protecting certain websites.
## Usage
Example:
```
module "cf_de_basic_auth_cookie_plant" {
source = "git::https://github.com/IronCore864/tfm-cf-basic-auth-cookie-plant.git"
naming_prefix = "xxx"
acm_certificate_arn = var.cookie_plant_cf_cert_arn
aliases = var.cookie_plant_cf_aliases
basic_auth_lambda_arn = "xxx"
cookie_plant_lambda_arn = "xxx"
r53_zone_id = var.r53_zone_id
set_cookie_r53_name = var.set_cookie_r53_name
}
```