Skip to content

Commit

Permalink
Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirrezaNasiri committed Jan 4, 2024
1 parent 6ba1691 commit 4380da2
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 79 deletions.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# terraform-azure-front-hub
# Fronthub Terraform Module

[![Terraform CI](https://github.com/PashmakGuru/terraform-azure-front-hub/actions/workflows/terraform-ci.yaml/badge.svg)](https://github.com/PashmakGuru/terraform-azure-front-hub/actions/workflows/terraform-ci.yaml)

## Overview
This Terraform configuration automates the setup of Azure CDN resources, streamlining the deployment and management of CDN infrastructure.

## Features
- **Resource Group Management**: Creates and manages Azure resource groups.
- **DNS Zone Configuration**: Handles the setup and configuration of Azure DNS zones.
- **CDN Frontdoor Profiles**: Sets up Azure CDN frontdoor profiles for content delivery optimization.
- **Dynamic Origin Groups**: Supports dynamic creation of origin groups based on input variables.
- **Public IP Integration**: Configures public IPs for CDN origins.
- **CDN Endpoints**: Manages the creation and configuration of CDN endpoints.
- **Routing Rules**: Implements routing rules for efficient content delivery.
- **Automatic Output Generation**: Outputs important details like name servers and endpoint URLs.

## File Structure
- [01-providers.tf](./01-providers.tf): Defines Terraform and AzureRM provider requirements.
- [outputs.tf](./outputs.tf): Contains outputs like name servers and URLs for CDN endpoints.
- [variables.tf](./variables.tf): Specifies required variables for the configuration.

## Usage
For usage examples, refer to the [`example`](./example) directory.

## Workflows
| Name | Description |
|---|---|
| [terraform-ci.yaml](.github/workflows/terraform-ci.yaml) | A workflow for linting and auto-formatting Terraform code. Triggered by pushes to `main` and `dev` branches or on pull requests, it consists of two jobs: `tflint` for lint checks and `format` for code formatting and automated pull requests. |
88 changes: 14 additions & 74 deletions example/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions example/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.79.0"
version = "~> 3.85"
}
}
required_version = "~> 1.6.3"
Expand Down

0 comments on commit 4380da2

Please sign in to comment.