Skip to content

Instantly share code, notes, and snippets.

View konarskis's full-sized avatar

Robert Konarskis konarskis

View GitHub Profile
@konarskis
konarskis / release-versioned.yml
Created June 2, 2024 10:30
Organization-wide GitHub release notifications to Slack - Versioned
name: Create a new release (manual versioning)
# Creates a new release on GitHub using the specified version.
# Sends a Slack notification to the specified channel.
# Only use for the versioned release workflow.
on:
workflow_call:
inputs:
name:
description: |
@konarskis
konarskis / release.yml
Created June 2, 2024 10:29
Organization-wide GitHub release notifications to Slack - Unversioned
name: Create a new release (auto versioning)
# Automatically bumps a version number and creates a new release on GitHub.
# Sends a Slack notification to the specified channel.
# Only use when not using the versioned release workflow.
on:
workflow_call:
inputs:
name:
description: |
@konarskis
konarskis / bastion.ts
Last active March 30, 2024 14:30
Deploy and Secure a Bastion Host with AWS CDK and Typescript
#!/usr/bin/env node
import * as cdk from 'aws-cdk-lib';
import { aws_ec2, Duration, Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import {
CfnEIP,
CfnEIPAssociation,
InstanceClass,
InstanceSize,