Code Monkey home page Code Monkey logo

terraform-segment-data-lakes's Introduction

terraform-data-lake

Terraform modules which create AWS or Azure resources for a Segment Data Lake as required.

Usage

If you want to create an AWS datalake refer to the modules and setup guide in aws_datalake folder

If you want to create an Azure datalake refer to the modules and setup guide in azure_datalake folder

FAQ

Using workspaceID as the externalID

Note - This is only applicable for users currently set up to use the sourceID as the externalID. All new users should use the workspaceID for this value.

To simplify the set up process of not requiring an update to the IAM role for each new source that is added, you can now use the workspaceID as the externalID. This only requires this value to be set once for the entire workspace. For existing users, to start using the workspaceID:

  • Add the workspaceID along with the existing sourceIds to the list of external ids in your main.tf
  • Reach out to [email protected] with this request to start using the workspaceID
  • Once Segment switches you over, you can remove the source ids from this list and not worry about updating it for any new source you wish to add.

Supported Terraform Versions

Terraform 0.12 or higher is supported.

In order to support more versions of Terraform, the AWS Provider needs to held at v2, as v3 has breaking changes we don't currently support. Our example main.tf has the code to accomplish this.

License

Released under the MIT License.

terraform-segment-data-lakes's People

Contributors

alistair-segment avatar dependabot[bot] avatar dominicbarnes avatar f2prateek avatar green-branch avatar hrdamani avatar laurenreeder avatar lfdelossantos avatar lfdelossantos99 avatar liggysmalls avatar mallikasahay avatar mike-carey avatar ryanaston avatar shayan-golafshani avatar uditmehta27 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

terraform-segment-data-lakes's Issues

EMR Autoscaling issues

There's two small issues in the autoscaling policies.

  1. aws_emr_cluster: Scale out policy should be named ScaleInHDFSUtilization instead of ScaleInMemoryPercentage:
{
  "Action": {
	  "SimpleScalingPolicyConfiguration": {
		  "ScalingAdjustment": -1,
		  "CoolDown": 300,
		  "AdjustmentType": "CHANGE_IN_CAPACITY"
	  }
  },
  "Description": "",
  "Trigger": {
	  "CloudWatchAlarmDefinition": {
		  "MetricName": "HDFSUtilization",
		  "ComparisonOperator": "LESS_THAN",
		  "Statistic": "AVERAGE",
		  "Period": 300,
		  "EvaluationPeriods": 1,
		  "Unit": "PERCENT",
		  "Namespace": "AWS/ElasticMapReduce",
		  "Threshold": 50
	  }
  },
  "Name": "ScaleInHDFSUtilization"
}
  1. aws_emr_instance_group: ContainerPendingRatio policies have both (In & Out) GREATER_THAN_OR_EQUAL comparisson operators. ScaleInContainersPending should have LESS_THAN_OR_EQUAL.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.