-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
executable file
·39 lines (36 loc) · 1.1 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
terraform {
required_providers {
anypoint = {
source = "mulesoft-anypoint/anypoint"
version = "1.7.0"
}
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
# Modules
module "anypoint_fabrics" {
source = "./anypoint-fabrics"
client_id = var.anypoint_client_id
client_secret = var.anypoint_client_secret
cplane = var.anypoint_cplane
org_id = var.anypoint_org_id
prefix = var.prefix
}
module "minikube" {
source = "./aws-ec2-minikube"
ami_id = "ami-0c6d91e4a58c413a9" # Ubuntu AMI
instance_type = var.aws_instance_type
key_name = "${var.prefix}mini-keypair"
public_key = var.aws_public_key
region = var.aws_region
profile = var.aws_profile
prefix = var.prefix
docker_registry = module.anypoint_fabrics.registry_endpoint
docker_username = module.anypoint_fabrics.registry_user
docker_password = module.anypoint_fabrics.registry_password
activation_data = module.anypoint_fabrics.activation_data
mule_license_key = var.mule_license_key
}