├── .gitignore ├── CloudFormation ├── bootstrap_serverless_code_repository.yaml ├── lambda-at-edge-code ├── scripts │ ├── _configuration.sh │ ├── bootstrap_serverless_repo.sh │ ├── create_serverless_infrastructure.sh │ ├── create_static_serverless_website.sh │ ├── invalidate_cloudfront_cache.sh │ └── upload_website_to_s3_bucket.sh ├── serverless_static_website_with_basic_auth.yaml └── static-website-content ├── LICENSE ├── README.md ├── Terraform ├── lambda-at-edge-code │ └── static-website.example.com │ │ └── index.js ├── main.tf ├── modules │ ├── serverless-code-repository-bucket │ │ ├── README.md │ │ ├── main.tf │ │ ├── outputs.tf │ │ ├── variables.tf │ │ └── versions.tf │ └── serverless-static-website-with-basic-auth │ │ ├── README.md │ │ ├── main.tf │ │ ├── outputs.tf │ │ ├── variables.tf │ │ └── versions.tf ├── outputs.tf ├── providers.tf ├── scripts │ ├── _configuration.sh │ ├── create_serverless_infrastructure.sh │ ├── create_static_serverless_website.sh │ ├── invalidate_cloudfront_cache.sh │ └── upload_website_to_s3_bucket.sh ├── settings │ └── static-website.example.com.tfvars ├── static-website-content ├── variables.tf └── versions.tf ├── lambda-at-edge-code └── index.js └── static-website-content ├── css ├── bootstrap-grid.css ├── bootstrap.css └── demo.css └── index.html /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/.gitignore -------------------------------------------------------------------------------- /CloudFormation/bootstrap_serverless_code_repository.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/CloudFormation/bootstrap_serverless_code_repository.yaml -------------------------------------------------------------------------------- /CloudFormation/lambda-at-edge-code: -------------------------------------------------------------------------------- 1 | ../lambda-at-edge-code/ -------------------------------------------------------------------------------- /CloudFormation/scripts/_configuration.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/CloudFormation/scripts/_configuration.sh -------------------------------------------------------------------------------- /CloudFormation/scripts/bootstrap_serverless_repo.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/CloudFormation/scripts/bootstrap_serverless_repo.sh -------------------------------------------------------------------------------- /CloudFormation/scripts/create_serverless_infrastructure.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/CloudFormation/scripts/create_serverless_infrastructure.sh -------------------------------------------------------------------------------- /CloudFormation/scripts/create_static_serverless_website.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/CloudFormation/scripts/create_static_serverless_website.sh -------------------------------------------------------------------------------- /CloudFormation/scripts/invalidate_cloudfront_cache.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/CloudFormation/scripts/invalidate_cloudfront_cache.sh -------------------------------------------------------------------------------- /CloudFormation/scripts/upload_website_to_s3_bucket.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/CloudFormation/scripts/upload_website_to_s3_bucket.sh -------------------------------------------------------------------------------- /CloudFormation/serverless_static_website_with_basic_auth.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/CloudFormation/serverless_static_website_with_basic_auth.yaml -------------------------------------------------------------------------------- /CloudFormation/static-website-content: -------------------------------------------------------------------------------- 1 | ../static-website-content/ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/README.md -------------------------------------------------------------------------------- /Terraform/lambda-at-edge-code/static-website.example.com/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/lambda-at-edge-code/static-website.example.com/index.js -------------------------------------------------------------------------------- /Terraform/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/main.tf -------------------------------------------------------------------------------- /Terraform/modules/serverless-code-repository-bucket/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/modules/serverless-code-repository-bucket/README.md -------------------------------------------------------------------------------- /Terraform/modules/serverless-code-repository-bucket/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/modules/serverless-code-repository-bucket/main.tf -------------------------------------------------------------------------------- /Terraform/modules/serverless-code-repository-bucket/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/modules/serverless-code-repository-bucket/outputs.tf -------------------------------------------------------------------------------- /Terraform/modules/serverless-code-repository-bucket/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/modules/serverless-code-repository-bucket/variables.tf -------------------------------------------------------------------------------- /Terraform/modules/serverless-code-repository-bucket/versions.tf: -------------------------------------------------------------------------------- 1 | 2 | terraform { 3 | required_version = ">= 0.12" 4 | } 5 | -------------------------------------------------------------------------------- /Terraform/modules/serverless-static-website-with-basic-auth/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/modules/serverless-static-website-with-basic-auth/README.md -------------------------------------------------------------------------------- /Terraform/modules/serverless-static-website-with-basic-auth/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/modules/serverless-static-website-with-basic-auth/main.tf -------------------------------------------------------------------------------- /Terraform/modules/serverless-static-website-with-basic-auth/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/modules/serverless-static-website-with-basic-auth/outputs.tf -------------------------------------------------------------------------------- /Terraform/modules/serverless-static-website-with-basic-auth/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/modules/serverless-static-website-with-basic-auth/variables.tf -------------------------------------------------------------------------------- /Terraform/modules/serverless-static-website-with-basic-auth/versions.tf: -------------------------------------------------------------------------------- 1 | 2 | terraform { 3 | required_version = ">= 0.12" 4 | } 5 | -------------------------------------------------------------------------------- /Terraform/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/outputs.tf -------------------------------------------------------------------------------- /Terraform/providers.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/providers.tf -------------------------------------------------------------------------------- /Terraform/scripts/_configuration.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/scripts/_configuration.sh -------------------------------------------------------------------------------- /Terraform/scripts/create_serverless_infrastructure.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/scripts/create_serverless_infrastructure.sh -------------------------------------------------------------------------------- /Terraform/scripts/create_static_serverless_website.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/scripts/create_static_serverless_website.sh -------------------------------------------------------------------------------- /Terraform/scripts/invalidate_cloudfront_cache.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/scripts/invalidate_cloudfront_cache.sh -------------------------------------------------------------------------------- /Terraform/scripts/upload_website_to_s3_bucket.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/scripts/upload_website_to_s3_bucket.sh -------------------------------------------------------------------------------- /Terraform/settings/static-website.example.com.tfvars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/settings/static-website.example.com.tfvars -------------------------------------------------------------------------------- /Terraform/static-website-content: -------------------------------------------------------------------------------- 1 | ../static-website-content/ -------------------------------------------------------------------------------- /Terraform/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/Terraform/variables.tf -------------------------------------------------------------------------------- /Terraform/versions.tf: -------------------------------------------------------------------------------- 1 | 2 | terraform { 3 | required_version = ">= 0.12" 4 | } 5 | -------------------------------------------------------------------------------- /lambda-at-edge-code/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/lambda-at-edge-code/index.js -------------------------------------------------------------------------------- /static-website-content/css/bootstrap-grid.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/static-website-content/css/bootstrap-grid.css -------------------------------------------------------------------------------- /static-website-content/css/bootstrap.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/static-website-content/css/bootstrap.css -------------------------------------------------------------------------------- /static-website-content/css/demo.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/static-website-content/css/demo.css -------------------------------------------------------------------------------- /static-website-content/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dumrauf/serverless_static_website_with_basic_auth/HEAD/static-website-content/index.html --------------------------------------------------------------------------------