Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ververica/flink-emr-terraform
Terraform module for creating AWS EMR Flink clusters.
https://github.com/ververica/flink-emr-terraform
Last synced: about 2 months ago
JSON representation
Terraform module for creating AWS EMR Flink clusters.
- Host: GitHub
- URL: https://github.com/ververica/flink-emr-terraform
- Owner: ververica
- License: mit
- Created: 2023-10-27T10:01:57.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-27T10:24:10.000Z (about 1 year ago)
- Last Synced: 2023-11-03T20:29:11.076Z (about 1 year ago)
- Language: HCL
- Size: 5.86 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Apache Flink AWS EMR Setup
Terraform script to setup Apache Flink on AWS EMR.
## Usage
Please follow these steps for usage.
### Create Configuration File
Create a `config.tfvars` file and update the variables:
```hcl
aws_profile = ""
region = ""## These values are used for AWS resource tags
project = ""
owner = ""
environment = ""## EMR related examples configurations, please update them accordingly
emr_release_label = "emr-6.9.1"
emr_main_instance_type = "m5.xlarge"
emr_core_instance_type = "m5.xlarge"
emr_core_instance_count = "2"
```### Deploy Setup
Initialize the terraform:
```sh
terraform init
```Get the terraform plan:
```sh
terraform plan -var-file config.tfvars -out terraform.tfplan
```Deploy the plan:
```sh
terraform apply -var-file config.tfvars
```This will ask your approval. You can also auto approve it, with the following
command:```sh
terraform apply -auto-approve -var-file config.tfvars
```_Please be patient, it will take some time to set up everything._
### Destroy the setup
Create a destroy plan:
```sh
terraform plan -destroy -var-file config.tfvars -out terraform.tfplan
```Run the destroy action:
```sh
terraform apply terraform.tfplan
```## License
[The MIT License (MIT)](LICENSE)