| # ***************************************************************************** |
| # |
| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you under the Apache License, Version 2.0 (the |
| # "License"); you may not use this file except in compliance |
| # with the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, |
| # software distributed under the License is distributed on an |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| # KIND, either express or implied. See the License for the |
| # specific language governing permissions and limitations |
| # under the License. |
| # |
| # ****************************************************************************** |
| |
| provider "aws" { |
| access_key = var.access_key_id |
| secret_key = var.secret_access_key |
| region = var.region |
| } |
| |
| module "common" { |
| source = "../modules/common" |
| sbn = var.service_base_name |
| project_name = var.project_name |
| project_tag = var.project_tag |
| endpoint_tag = var.endpoint_tag |
| user_tag = var.user_tag |
| custom_tag = var.custom_tag |
| notebook_name = var.notebook_name |
| region = var.region |
| zone = var.zone |
| product = var.product_name |
| vpc = var.vpc_id |
| cidr_range = var.cidr_range |
| traefik_cidr = var.traefik_cidr |
| instance_type = var.instance_type |
| } |
| |
| module "notebook" { |
| source = "../modules/notebook" |
| sbn = var.service_base_name |
| project_name = var.project_name |
| project_tag = var.project_tag |
| endpoint_tag = var.endpoint_tag |
| user_tag = var.user_tag |
| custom_tag = var.custom_tag |
| notebook_name = var.notebook_name |
| subnet_id = var.subnet_id |
| nb-sg_id = var.nb-sg_id |
| iam_profile_name = var.iam_profile_name |
| product = var.product_name |
| ami = var.ami |
| instance_type = var.instance_type |
| key_name = var.key_name |
| } |
| |
| module "data_engine" { |
| source = "../modules/data_engine" |
| sbn = var.service_base_name |
| project_name = var.project_name |
| project_tag = var.project_tag |
| endpoint_tag = var.endpoint_tag |
| user_tag = var.user_tag |
| custom_tag = var.custom_tag |
| notebook_name = var.notebook_name |
| subnet_id = var.subnet_id |
| nb-sg_id = var.nb-sg_id |
| iam_profile_name = var.iam_profile_name |
| product = var.product_name |
| ami = var.ami |
| instance_type = var.instance_type |
| key_name = var.key_name |
| cluster_name = var.cluster_name |
| slave_count = var.slave_count |
| } |
| |
| module "emr" { |
| source = "../modules/emr" |
| sbn = var.service_base_name |
| project_name = var.project_name |
| project_tag = var.project_tag |
| endpoint_tag = var.endpoint_tag |
| user_tag = var.user_tag |
| custom_tag = var.custom_tag |
| notebook_name = var.notebook_name |
| subnet_id = var.subnet_id |
| nb-sg_id = var.nb-sg_id |
| iam_profile_name = var.iam_profile_name |
| product = var.product_name |
| ami = var.ami |
| emr_template = var.emr_template |
| master_shape = var.master_shape |
| slave_shape = var.slave_shape |
| key_name = var.key_name |
| cluster_name = var.cluster_name |
| instance_count = var.instance_count |
| bid_price = var.bid_price |
| } |
| |
| module "ami" { |
| source = "../modules/ami" |
| sbn = var.service_base_name |
| project_name = var.project_name |
| source_instance_id = var.source_instance_id |
| project_tag = var.project_tag |
| notebook_name = var.notebook_name |
| product = var.product_name |
| endpoint_tag = var.endpoint_tag |
| user_tag = var.user_tag |
| custom_tag = var.custom_tag |
| } |