Place launch.json
file in .vscode/
directory in the root of your CDK application
It assumes the entry point of your CDK app is in
bin/app.ts
.Adjust
args
attribute accordingly if you use something else.
import request from 'superagent'; | |
export const getWeatherForCity = (city, country) => { | |
return new Promise((resolve, reject) => { | |
request | |
.get('http://api.openweathermap.org/data/2.5/weather') | |
.query({ | |
q: `${city},${country}`, | |
units: 'metric', | |
APPID: 'ABC123' |
[ | |
{ | |
"action": "talk", | |
"text": "Hello! This is an automated call from ACME company.", | |
"voiceName": "Brian", | |
"bargeIn": false | |
}, | |
{ | |
"action": "talk", | |
"text": "Please confirm the service request for Max Mustermann, PNR: B, C, X, 4, 5, 1, 3.", |
const uuidv1 = require('uuid/v1'); | |
class OrderId { | |
id: string | |
constructor(id: string) { | |
this.id = id | |
} | |
static fromString(id: string): OrderId { |
#!/bin/bash | |
# | |
# RUN: | |
# AWS_PROFILE=[profile] AWS_REGION=[region] ./check-ebs-snapshots.sh | |
# | |
AWS_ACCOUNT_ID=$(aws sts get-caller-identity --output text --query 'Account') | |
snapshots=$(aws ec2 describe-snapshots \ |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: S3 bucket remediation automation using AWS Config and AWS Service Manager | |
Parameters: | |
Versioning: | |
Type: String | |
AllowedValues: [ "true", "false" ] | |
Default: "true" |
name: Daily Build | |
on: | |
# Trigger build manually | |
workflow_dispatch: | |
# Runs every day at 3pm GMT | |
schedule: | |
- cron: '0 15 * * *' |