This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - job: test | |
| pool: | |
| name: mypool | |
| condition: eq(variables['Build.Reason'], 'PullRequest') | |
| steps: | |
| - script: | | |
| yarn test | |
| displayName: 'TEST' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.2' | |
| services: | |
| db: | |
| image: mysql:5.7 | |
| ports: | |
| - "3306:3306" | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=docker | |
| - TZ=Asia/Seoul |