Skip to content

Instantly share code, notes, and snippets.

View heejunghwang's full-sized avatar

Hwang Hee Jung heejunghwang

  • Seoul, Korea
View GitHub Profile
@heejunghwang
heejunghwang / aws-cdk-example.ts
Created August 26, 2020 07:43
aws-cdk-example.ts
#!/usr/bin/env node
import 'source-map-support/register';
import * as cdk from '@aws-cdk/core';
import { AwsCdkExampleStack } from '../lib/aws-cdk-example-stack';
const app = new cdk.App();
new AwsCdkExampleStack(app, 'AwsCdkExampleStack');
@heejunghwang
heejunghwang / aws-cdk-example-stack.ts
Last active August 26, 2020 07:38
aws cdk example
import * as cdk from '@aws-cdk/core';
import { Queue } from "@aws-cdk/aws-sqs";
export class AwsCdkExampleStack extends cdk.Stack {
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
// NOTE : first parameter is this because you are creating the Construct in this context of this context (parent context)
new Queue(this, "hello-queue", {
queueName: "hello-queue"
@heejunghwang
heejunghwang / azure-pipeline.yaml
Created August 21, 2020 07:10
azure self hosted agent example
- job: test
pool:
name: mypool
condition: eq(variables['Build.Reason'], 'PullRequest')
steps:
- script: |
yarn test
displayName: 'TEST'
@heejunghwang
heejunghwang / docker-compose.yaml
Created August 7, 2020 03:54
docker-compose-mysql
version: '3.2'
services:
db:
image: mysql:5.7
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=docker
- TZ=Asia/Seoul