Skip to content

Instantly share code, notes, and snippets.

View mtskillman's full-sized avatar

Matt Skillman mtskillman

View GitHub Profile
@atheiman
atheiman / EbsEncryptionByDefault.yml
Last active January 19, 2024 13:22
Enable EBS default encryption using a CloudFormation custom resource.
# aws cloudformation deploy \
# --stack-name EbsEncryptionByDefault \
# --capabilities 'CAPABILITY_IAM' \
# --template-file ./EbsEncryptionByDefault.yml
Description: >-
Enables default EBS encryption settings. See EBS Encryption docs for more info:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html
Resources:
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 14, 2024 11:24
set -e, -u, -o, -x pipefail explanation
@brandond
brandond / vpc-flowlog
Last active September 18, 2023 03:41
logstash-grok-pattern-vpc-flow-log
# VPC Flow Log fields
# version account-id interface-id srcaddr dstaddr srcport dstport protocol packets bytes start end action log-status
# http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/flow-logs.html#flow-log-records
VPCFLOWLOG %{NUMBER:version:int} %{NUMBER:account-id} %{NOTSPACE:interface-id} %{NOTSPACE:srcaddr} %{NOTSPACE:dstaddr} %{NOTSPACE:srcport:int} %{NOTSPACE:dstport:int} %{NOTSPACE:protocol:int} %{NOTSPACE:packets:int} %{NOTSPACE:bytes:int} %{NUMBER:start:int} %{NUMBER:end:int} %{NOTSPACE:action} %{NOTSPACE:log-status}