Skip to content

Instantly share code, notes, and snippets.

Avatar

Kevin Karwaski kevinkarwaski

View GitHub Profile
View github-workflow-terragrunt-apply-all.yml
name: Terragrunt Apply All (deploy)
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
View github-workflow-terragrunt-plan-all.yml
name: Terragrunt Plan All (dry run)
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
View github-workflow-lint-terraform.yml
name: Lint and Validate Terraform Code
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
env:
View github-workflow-apply-tag.yml
name: Apply/Increment Tag
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
View codepipeline-example.yml
---
AWSTemplateFormatVersion: '2010-09-09'
Description: My example codepipeline template
# ------------------------- #
# CloudFormation Parameters #
# ------------------------- #
Parameters:
View codebuild-pr-example.yml
AWSTemplateFormatVersion: "2010-09-09"
Description: My example codebuild template for pull requests
Parameters:
VPCStackName:
Type: AWS::SSM::Parameter::Value<String>
Default: /cloudformation/parameters/vpc/stackname
Description: The name of the parent VPC networking stack that you created. Necessary
to locate and reference resources created by that stack.
View codebuild-buildspec-react-example.yml
version: 0.2
phases:
install:
runtime-versions:
nodejs: 10
commands:
- echo Installing app dependencies...
- yarn install
build:
View fargate-service-template.yml
AWSTemplateFormatVersion: '2010-09-09'
Description: Deploy a service on AWS Fargate, hosted in a private subnet.
Parameters:
ENV:
Description: Name of the environment
Type: AWS::SSM::Parameter::Value<String>
Default: /cloudformation/parameters/env
@kevinkarwaski
kevinkarwaski / ShowAllFiles
Created May 10, 2019
Control dot/hidden file visibility in OSX from the command line
View ShowAllFiles
# Show dot/hidden files in the OXS Finder
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
# Hide dot/hidden files in the OXS Finder
defaults write com.apple.finder AppleShowAllFiles False
killall Finder
View install-jet.sh
#!/usr/bin/env bash -e
# Install Codeship's JET cli tool for Docker on OSX (brew-less).
# https://codeship.com/documentation/docker/installation/#mac-os-x
# https://codeship.com/documentation/docker/release-notes/
JET_VERSION=1.9.3
FILE_NAME=jet-darwin_amd64_${JET_VERSION}.tar.gz
CHECKSUM=sha256sums