Skip to content

Instantly share code, notes, and snippets.

View kevinkarwaski's full-sized avatar

Kevin Karwaski kevinkarwaski

View GitHub Profile
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 }}
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 }}
name: Lint and Validate Terraform Code
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
env:
name: Apply/Increment Tag
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
---
AWSTemplateFormatVersion: '2010-09-09'
Description: My example codepipeline template
# ------------------------- #
# CloudFormation Parameters #
# ------------------------- #
Parameters:
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.
@kevinkarwaski
kevinkarwaski / codebuild-buildspec-react-example.yml
Created September 26, 2019 13:55
Example CodeBuild buildspec file
version: 0.2
phases:
install:
runtime-versions:
nodejs: 10
commands:
- echo Installing app dependencies...
- yarn install
build:
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 13:21
Control dot/hidden file visibility in OSX from the command line
# 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
#!/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