- Notifications
You must be signed in to change notification settings - Fork0
chore: update docs and semantics#3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
24 changes: 24 additions & 0 deletions.github/workflows/semantic-check.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| name: "Semantic Check" | ||
| on: | ||
| pull_request_target: | ||
| types: | ||
| - opened | ||
| - edited | ||
| - synchronize | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| jobs: | ||
| main: | ||
| name: Semantic Commit Message Check | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # ratchet:actions/checkout@v4 | ||
| - uses: amannn/action-semantic-pull-request@cfb60706e18bc85e8aec535e3c577abe8f70378e # ratchet:amannn/action-semantic-pull-request@v5 | ||
| name: Check PR for Semantic Commit Message | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| requireScope: false | ||
| validateSingleCommit: true | ||
| ignoreLabels: release merge |
85 changes: 72 additions & 13 deletionsREADME.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,89 @@ | ||
| # Terraform AWS Complete Static Site Module | ||
| [](https://www.terraform.io) | ||
| [](https://opensource.org/licenses/MIT) | ||
| This Terraform module consist the configuration for hosting a static website on AWS. It creates and configures the necessary AWS resources including S3, Route 53 (DNS), IAM, CloudFront, and WAF. | ||
| ## Description | ||
| This Terraform module sets up an S3 bucket for storing your static website content, a CloudFront distribution for content delivery, OAI for access the bucket through CloudFront(Secure access), a WAF WebACL for protecting your site, and a Route 53 record for DNS. It also creates an IAM user for managing continuous deployment to the s3 bucket. | ||
| This module provisions: | ||
| - AWS Route53 records | ||
| - AWS ACM certificates | ||
| - AWS CloudFront distributions | ||
| - IAM user | ||
| - S3 bucket | ||
|  | ||
| ## Usage | ||
| ### Example with a custom domain (sub domain) | ||
| ```hcl | ||
| module "frontend" { | ||
| source = "github.com/iKnowJavaScript/terraform-aws-complete-static-site" | ||
| name = "example-website" | ||
| environment = "prod" | ||
| create_custom_domain = true | ||
| hosted_zone_domain = "example.com" | ||
| custom_domain_name = "example-website.example.com" | ||
| aws_region = "us-east-1" | ||
| tags = {} | ||
| } | ||
| provider "aws" { | ||
| region = "us-east-1" | ||
| } | ||
| ``` | ||
| ### Example with default CloudFlare domain | ||
| ```hcl | ||
| module "frontend" { | ||
| source = "github.com/iKnowJavaScript/terraform-aws-complete-static-site" | ||
| name = "example-website" | ||
| environment = "prod" | ||
| create_custom_domain = false | ||
| aws_region = "us-east-1" | ||
| tags = {} | ||
| } | ||
| provider "aws" { | ||
| region = "us-east-1" | ||
| } | ||
| ``` | ||
| ## Inputs | ||
| | Name | Description | Type | Default | Required | | ||
| |------|-------------|------|---------|:--------:| | ||
| | aws_region | The AWS region to create resources in | `string` | n/a | no | | ||
| | hosted_zone_domain | (OPTIONAL) Hosted zone to add doamin and cloufront Cname to | `string` | n/a | no | | ||
| | custom_domain_name | (OPTIONAL) Custom domain name. should be a sub.domain to the main domain available on the hosted zone or ''(empty string) to use the domain on hosted zone. | `string` | n/a | no | | ||
| | create_custom_domain | Whether to create a custom domain | `bool` | `false` | no | | ||
| | name | The project name | `string` | n/a | yes | | ||
| | environment | The environment the resources is meant for. | `string` | n/a | yes | | ||
| | tags | Resources tags. | `map(string)` | n/a | no | | ||
| ## Outputs | ||
| | Name | Description | Sensitive | | ||
| |------|-------------|:---------:| | ||
| | cloudflare_domain | Direct cloudflare domain | No | | ||
| | custom_domain | Custom domain name | No | | ||
| | bucket_name | S3 bucket name | No | | ||
| | access_key_id | The access key ID for the S3 user | No | | ||
| | secret_access_key | The secret access key for the S3 user | Yes | | ||
| | domain_certificate_arn | The ARN of the domain certificate | No | | ||
| *To view sensitive secret, try `terraform output secret_access_key`* | ||
| ## License | ||
| This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details. |
Binary file addedassets/diagram.png
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletionsoutput.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionvariables.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.