-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathmain.tf
34 lines (26 loc) · 836 Bytes
/
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
###############################################################################
# An example using this module to set up a minimal deployment Metaflow
# with AWS Batch support, without the UI.
###############################################################################
terraform {
required_version = ">= 1.10"
required_providers {
aws = ">= 5.82"
random = ">= 3.6"
}
}
provider "aws" {
region = "us-west-2" # make sure to set the region to the one you want to deploy to
}
module "metaflow" {
source = "../../"
create_vpc = true
tags = {
"managedBy" = "terraform"
}
}
# The module will generate a Metaflow config in JSON format, write it to a file
resource "local_file" "metaflow_config" {
content = module.metaflow.metaflow_aws_managed_profile_json
filename = "./metaflow_profile.json"
}