Skip to content

Instantly share code, notes, and snippets.

# Here you define the stages of your pipeline.
# more info: https://docs.gitlab.com/ee/ci/yaml/#stages
stages:
- build
- deploy
# Here you define top-level cache.
# In this case, I'm caching the node_modules/ folder, so next you run "yarn install" it won't take too much time.
# more info: https://docs.gitlab.com/ee/ci/yaml/#cache
cache:
@ianrodrigues
ianrodrigues / cleanup.py
Created June 16, 2021 17:02 — forked from luhn/cleanup.py
An AWS Lambda function to delete old AMIs.
"""
Code adapted from and inspired by http://blog.ranman.org/cleaning-up-aws-with-boto3/.
"""
import os
import re
from datetime import datetime, timedelta
import boto3
import { client } from '~/services/api.server';
import { getAccessToken } from '~/services/session.server';
import { Team } from './types';
export const getTeam = async (
request: Request,
{ teamId }: { teamId: string }
): Promise<Team> => {
const { data } = await client.get(`/teams/${teamId}`, {