Skip to content

Commit

Permalink
Merge pull request #4 from seanturner026/terraform-module
Browse files Browse the repository at this point in the history
Modularised repo for terraform
  • Loading branch information
seanturner026 authored May 22, 2021
2 parents a2dffdb + 6479b1e commit 162831a
Show file tree
Hide file tree
Showing 27 changed files with 56 additions and 104 deletions.
55 changes: 55 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,31 @@ This solution utilises the following services:
- S3 + Cloudfront (frontend)
- SSM Parameter Store (secrets management)

#### Installation

```hcl
module "moot" {
source = "github.com/seanturner026/moot.git?ref=v1.0.0"
name = "moot"
admin_user_email = var.admin_user_email
enable_delete_admin_user = false
github_token = var.github_token
gitlab_token = var.gitlab_token
slack_webhook_url = var.slack_webhook_url
fqdn_alias = "moot.link"
hosted_zone_name = "moot.link"
enable_api_gateway_access_logs = true
tags = var.tags
}
```

#### Workflows

- Standard Deploy: Merges the HEAD branch into the BASE (e.g. main) branch, creates release based on BASE branch
- Hotfix Deploy: Creates release based on the BASE branch


#### Repositories View

![alt text](https://github.com/seanturner026/moot/blob/main/assets/repositories.png?raw=true)
Expand All @@ -27,3 +52,33 @@ This solution utilises the following services:
#### Users View

![alt text](https://github.com/seanturner026/moot/blob/main/assets/users.png?raw=true)

## Terraform Providers

| Name | Version |
|------|---------|
| archive | n/a |
| aws | n/a |
| external | n/a |
| null | n/a |

## Terraform Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| admin\_user\_email | Controls the creation of an admin user that is required to initially gain access to the<br>dashboard.<br><br>If access to the dashboard is completely lost, do the following<br>• `var.enable_delete_admin_user = true`<br>• `terraform apply`<br>• `var.enable_delete_admin_user = false`<br>• `terraform apply`<br><br>If the initial admin user should no longer be able to access the dashboard, revoke access by<br>setting `var.enable_delete_admin_user = true` and running `terraform apply` | `string` | `""` | no |
| enable\_api\_gateway\_access\_logs | Enables API Gateway access logging to cloudwatch for the default stage. | `bool` | `false` | no |
| enable\_delete\_admin\_user | Destroys the admin user.<br><br>Set this value to true to destroy the user, and to false to recreate the user. | `bool` | `false` | no |
| fqdn\_alias | ALIAS for the Cloudfront distribution, S3, Cognito and API Gateway. Must be in the form of<br>`example.com`. | `string` | `""` | no |
| github\_token | Token for Github. | `string` | `""` | no |
| gitlab\_token | Token for Gitlab. | `string` | `""` | no |
| hosted\_zone\_name | Name of AWS Route53 Hosted Zone for DNS. | `string` | `""` | no |
| name | Name to be applied to all resources. | `string` | `"release_dashboard"` | no |
| slack\_webhook\_url | URL to send slack message payloads to. | `string` | `""` | no |
| tags | Map of tags to be applied to resources. | `map(string)` | `{}` | no |

## Terraform Outputs

| Name | Description |
|------|-------------|
| cloudfront\_domain\_name | FQDN of Cloudfront Distribution that can be used for DNS. |
File renamed without changes.
75 changes: 0 additions & 75 deletions deployments/terraform/.terraform.lock.hcl

This file was deleted.

28 changes: 0 additions & 28 deletions deployments/terraform/README.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module "dashboard" {
module "moot" {
source = "../../"

name = "moot"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 162831a

Please sign in to comment.