Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

-- Construct an account to anonymous ID mapping
with account_mappings as (
select distinct on (anonymous_id)
anonymous_id,
account_id
from app_production.identifies
where anonymous_id is not null
order by anonymous_id, account_id
),
@nickpad
nickpad / cloudformation.json
Last active February 28, 2022 05:03
Example cloudformation template for auto scaling deploys
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Auto scaling deploy example",
"Parameters": {
"AvailabilityZone": {
"Type": "String",
"Default": "us-west-1a"
},
"ImageId": {
"Type": "String"