Skip to content

Instantly share code, notes, and snippets.

View 0xTim's full-sized avatar

Tim Condon 0xTim

View GitHub Profile
0xTim / deploy.yaml
Created February 17, 2021 17:50
CF stack for a Vapor app
AWSTemplateFormatVersion: 2010-09-09
Description: CloudFormation stack for a Vapor app
Type: String
Type: String
# update with the name of the service
Default: your-servoce
0xTim / deploy.swift
Last active December 19, 2022 13:13
A Swift script to deploy an app (in this case Vapor) to AWS Fargate from scratch. It first checks to see if there's a repository in ECR for the app, if not it creates one, builds the container and pushes it. It then checks for a registered task definition. In one doesn't exist in ECS, it updates the provided task definition with the latest ECR i…
import Foundation
// MARK: - Script variables
let awsProfileName: String? = "myProfile"
let serviceName = "someService"
// MARK: - Functions
func shell(_ args: String..., returnStdOut: Bool = false, stdIn: Pipe? = nil) -> (Int32, Pipe) {
0xTim /
Last active February 13, 2019 01:52
Changes for the Ray Wenderlich Vapor Videos for Vapor 3 RC 2

Vapor 3 RC 2 Updates

Vapor 3 RC 2 is out! To update, ensure that your Package.swift contains something like:

.package(url: "", from: "3.0.0-rc"),
.package(url: "", from: "3.0.0-rc"),
.package(url: "", from: "3.0.0-rc"),