Skip to content

Instantly share code, notes, and snippets.

View yorkhuang-au's full-sized avatar

York Huang yorkhuang-au

  • Sydney, Australia
View GitHub Profile
@yorkhuang-au
yorkhuang-au / cloudwatch.tf
Created May 22, 2021 04:04 — forked from picadoh/cloudwatch.tf
EC2 Instance Scheduling (Stop/Start) with Terraform
### Cloudwatch Events ###
# Event rule: Runs at 8pm during working days
resource "aws_cloudwatch_event_rule" "start_instances_event_rule" {
name = "start_instances_event_rule"
description = "Starts stopped EC2 instances"
schedule_expression = "cron(0 8 ? * MON-FRI *)"
depends_on = ["aws_lambda_function.ec2_start_scheduler_lambda"]
}
# Runs at 8am during working days
@yorkhuang-au
yorkhuang-au / Spark in IntelliJ-build.sbt
Created June 5, 2017 01:39 — forked from akiatoji/Spark in IntelliJ-build.sbt
Sample build.sbt for building a Spark Job that processes complex Avro data types and Hive tables.
import sbt._
name := "CatSpark"
version := "1.0"
scalaVersion := "2.10.4"
val spark_gid = "org.apache.spark"
val spark_version = "1.3.0"
@yorkhuang-au
yorkhuang-au / README
Created February 4, 2016 05:28 — forked from maxkfranz/README
wine-and-cheese-demo
dummy file to create gist