generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from terraform-do-modules/internal-418
feat: initial commit
- Loading branch information
Showing
30 changed files
with
501 additions
and
95 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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,2 +1,2 @@ | ||
# These owners will be the default owners for everything in the repo. | ||
* @anmolnagpal @clouddrove/approvers @clouddrove-ci | ||
@terraform-do-modules/approvers @clouddrove-ci @anmolnagpal |
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -3,7 +3,6 @@ name: Auto Assign PRs | |
on: | ||
pull_request: | ||
types: [opened, reopened] | ||
|
||
workflow_dispatch: | ||
jobs: | ||
assign-pr: | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -208,3 +208,4 @@ terraform.tfstate | |
*.iml | ||
*.terraform.lock.hcl | ||
*.lock.hcl | ||
*kubeconfig |
This file contains 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
This file contains 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,5 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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,4 +1,50 @@ | ||
# ------------------------------------------------------------------------------ | ||
# Resources | ||
# ------------------------------------------------------------------------------ | ||
locals {} | ||
provider "digitalocean" {} | ||
|
||
locals { | ||
name = "app" | ||
environment = "test" | ||
region = "blr1" | ||
} | ||
|
||
##------------------------------------------------ | ||
## VPC module call | ||
##------------------------------------------------ | ||
module "vpc" { | ||
source = "terraform-do-modules/vpc/digitalocean" | ||
version = "1.0.0" | ||
name = local.name | ||
environment = local.environment | ||
region = local.region | ||
ip_range = "10.10.0.0/16" | ||
} | ||
|
||
##------------------------------------------------ | ||
## Kubernetes module call | ||
##------------------------------------------------ | ||
module "cluster" { | ||
source = "./../../" | ||
name = local.name | ||
environment = local.environment | ||
region = local.region | ||
cluster_version = "1.27.4-do.0" | ||
vpc_uuid = module.vpc.id | ||
|
||
critical_node_pool = { | ||
critical_node = { | ||
node_count = 1 | ||
min_nodes = 1 | ||
max_nodes = 2 | ||
size = "s-1vcpu-2gb" | ||
} | ||
} | ||
|
||
app_node_pools = { | ||
app_node = { | ||
node_count = 1 | ||
min_nodes = 1 | ||
max_nodes = 2 | ||
size = "s-1vcpu-2gb" | ||
} | ||
} | ||
} | ||
|
This file contains 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,3 +1,7 @@ | ||
# ------------------------------------------------------------------------------ | ||
# Outputs | ||
# ------------------------------------------------------------------------------ | ||
output "id" { | ||
value = module.cluster[*].id | ||
description = "The id of Kubernetes cluster." | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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,10 @@ | ||
# Terraform version | ||
terraform { | ||
required_version = ">= 1.4.6" | ||
required_providers { | ||
digitalocean = { | ||
source = "digitalocean/digitalocean" | ||
version = ">= 2.28.1" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.