https://github.com/blue0513/cloudfront-experiment
https://github.com/blue0513/cloudfront-experiment
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/blue0513/cloudfront-experiment
- Owner: blue0513
- Created: 2024-04-04T15:35:18.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-04T16:14:46.000Z (about 2 years ago)
- Last Synced: 2025-07-25T11:31:08.870Z (11 months ago)
- Language: HCL
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cloudfront-experiment
Make Cloudfront and S3 bucket
## Usage
```shell
# Setup terraform.tfvars
make setup
# Deploy S3 & Cloudfront
make plan
make apply
```
```shell
# After accessing several times, it says `x-cache: Hit from cloudfront`
DISTRIBUTION_DOMAIN="YOUR_DISTRIBUTION_DOMAIN_NAME" make access
```
```shell
# After WAF rejects DoS attack, it says `HTTP/2 403`
DISTRIBUTION_DOMAIN="YOUR_DISTRIBUTION_DOMAIN_NAME" make attack
```