mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-15 09:06:25 +00:00
dca3418bbd
Moves datasource, manager, platform and versioning code from lib/ into new lib/modules/ BREAKING CHANGE: External tools must update paths to datasource, manager, platform and versioning
137 lines
2.9 KiB
HCL
137 lines
2.9 KiB
HCL
module "foo" {
|
|
source = "github.com/hashicorp/example?ref=v1.0.0"
|
|
}
|
|
|
|
module "bar" {
|
|
source = "github.com/hashicorp/example?ref=next"
|
|
}
|
|
|
|
module "repo-with-non-semver-ref" {
|
|
source = "github.com/githubuser/myrepo//terraform/modules/moduleone?ref=tfmodule_one-v0.0.9"
|
|
}
|
|
|
|
module "repo-with-dot" {
|
|
source = "github.com/hashicorp/example.2.3?ref=v1.0.0"
|
|
}
|
|
|
|
module "repo-with-dot-and-git-suffix" {
|
|
source = "github.com/hashicorp/example.2.3.git?ref=v1.0.0"
|
|
}
|
|
|
|
module "consul" {
|
|
source = "hashicorp/consul/aws"
|
|
version = "0.1.0"
|
|
}
|
|
|
|
module "consul1" {
|
|
source = "git@github.com:hashicorp/example.git?ref=v2.0.0"
|
|
}
|
|
|
|
module "consul3" {
|
|
source = "app.terraform.io/example-corp/k8s-cluster/azurerm"
|
|
version = "~> 1.1.0"
|
|
}
|
|
|
|
module "consul4" {
|
|
source = "app.terraform.io/example-corp/k8s-cluster/azurerm"
|
|
version = "~> 1.1"
|
|
}
|
|
|
|
module "consul5" {
|
|
source = "app.terraform.io/example-corp/k8s-cluster/azurerm"
|
|
version = "~~ 1.1"
|
|
}
|
|
|
|
module "consul6" {
|
|
source = "hashicorp/consul/aws"
|
|
version = ">= 1.0.0, <= 2.0.0"
|
|
}
|
|
|
|
module "container_definition" {
|
|
source = "github.com/tieto-cem/terraform-aws-ecs-task-definition//modules/container-definition?ref=v0.1.0"
|
|
name = "hello"
|
|
image = "tutum/hello-world"
|
|
mem_soft_limit = 256
|
|
port_mappings = [{
|
|
containerPort = 80
|
|
hostPort = 80
|
|
}]
|
|
}
|
|
|
|
module "task_definition" {
|
|
source = "github.com/tieto-cem/terraform-aws-ecs-task-definition?ref=v0.1.0"
|
|
name = "mytask"
|
|
container_definitions = [
|
|
"${module.container_definition.json}"]
|
|
}
|
|
|
|
|
|
module "web_server_sg" {
|
|
source = "terraform-aws-modules/security-group/aws//modules/http-80"
|
|
|
|
name = "web-server"
|
|
description = "Security group for web-server with HTTP ports open within VPC"
|
|
vpc_id = "vpc-12345678"
|
|
|
|
ingress_cidr_blocks = ["10.10.0.0/16"]
|
|
}
|
|
|
|
module "vote_service_sg" {
|
|
source = "terraform-aws-modules/security-group/aws"
|
|
version = "<= 2.4.0"
|
|
|
|
name = "user-service"
|
|
description = "Security group for user-service with custom ports open within VPC, and PostgreSQL publicly open"
|
|
vpc_id = "vpc-12345678"
|
|
|
|
ingress_cidr_blocks = ["10.10.0.0/16"]
|
|
ingress_rules = ["https-443-tcp"]
|
|
ingress_with_cidr_blocks = [
|
|
{
|
|
from_port = 8080
|
|
to_port = 8090
|
|
protocol = "tcp"
|
|
description = "User-service ports"
|
|
cidr_blocks = "10.10.0.0/16"
|
|
},
|
|
{
|
|
rule = "postgresql-tcp"
|
|
cidr_blocks = "0.0.0.0/0"
|
|
},
|
|
]
|
|
}
|
|
|
|
module "addons_aws" {
|
|
|
|
providers = {
|
|
helm = helm.core
|
|
kubectl = kubectl.core
|
|
kubernetes = kubernetes.core
|
|
}
|
|
|
|
cluster-name = data.aws_eks_cluster.core_cluster.id
|
|
|
|
aws-ebs-csi-driver = {
|
|
enabled = true
|
|
is_default_class = true
|
|
version = "1.0.0"
|
|
}
|
|
|
|
|
|
source = "particuleio/addons/kubernetes//modules/aws"
|
|
version = "1.28.3"
|
|
|
|
aws-load-balancer-controller = {
|
|
enabled = true
|
|
}
|
|
}
|
|
|
|
|
|
|
|
module "relative" {
|
|
source = "../../modules/fe"
|
|
}
|
|
|
|
module "nosauce" {
|
|
foo = "bar"
|
|
}
|