Skip to content

Instantly share code, notes, and snippets.

View tpschmidt's full-sized avatar
🎯
Focusing

Tobias Schmidt tpschmidt

🎯
Focusing
View GitHub Profile
@tpschmidt
tpschmidt / set-retention.sh
Created March 1, 2024 06:18
Set Retention for all AWS CloudWatch Log Groups in all Regions
#!/bin/bash
retention_days=$1
if [ -z "$retention_days" ]; then
echo "Usage: $0 <retention_days>"
exit 1
fi
regions=$(aws ec2 describe-regions \
@tpschmidt
tpschmidt / step-function-execution-example.js
Last active June 12, 2021 09:11
Step Functions: Starting a State Machine via AWS SDK
import AWS, { StepFunctions } from 'aws-sdk'
import { v4 } from 'uuid'
import { StartExecutionInput, StartExecutionOutput } from 'aws-sdk/clients/stepfunctions'
interface StateMachineSubmission {
customerId: string
traceId: string
}
export class StateMachineService {

Keybase proof

I hereby claim:

  • I am tpschmidt on github.
  • I am tpschmidt (https://keybase.io/tpschmidt) on keybase.
  • I have a public key ASAgvPAm-OIZkHW9Ydkwa3IOb8uPqqg8TmN-OYF5Dbb-ZAo

To claim this, I am signing this object: