Skip to content

Instantly share code, notes, and snippets.

@yoshihitoh
yoshihitoh / stack.ts
Last active May 26, 2020 09:21
CDKでS3⇢Step Functions
import * as events from '@aws-cdk/aws-events';
import * as s3 from '@aws-cdk/aws-s3';
import * as sfn from '@aws-cdk/aws-stepfunctions';
import * as targets from '@aws-cdk/aws-events-targets';
function cloudTrailS3Event(bucket: s3.IBucket, detailType: string, grantOps: string[]): events.EventPattern {
return {
source: ["aws.s3"],
detailType: [detailType],
detail: {
@yoshihitoh
yoshihitoh / Cargo.toml
Last active September 28, 2019 07:01
Slack の中の人が教える Slack API ハンズオン in 福岡
[package]
name = "rust-slack-app"
version = "0.1.0"
authors = ["yoshihitoh <yoshihito.arih@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
slack = "0.22"
@yoshihitoh
yoshihitoh / Pipfile
Last active September 30, 2018 10:36
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
"boto3" = "*"
"flake8" = "*"
"flake8-import-order" = "*"
black = "*"
@yoshihitoh
yoshihitoh / sqs-error-rusoto060.md
Last active September 9, 2016 14:36
sqs error using rusoto 0.6.0

Environment

  • os: Windows 10 (64bit)
  • rust: 1.11.0 (64bit MSVC ABI, GNU ABI)
  • aws credentials: ~/.aws/credentials (uses DefaultCredentialsProvider)