Skip to content

Instantly share code, notes, and snippets.

View mrpackethead's full-sized avatar
😁
Focusing

Andrew mrpackethead

😁
Focusing
  • Raindancers
  • Wellington, New Zealand
View GitHub Profile
const cTNewAccountRule = new events.Rule(this, 'ControlTowerEventRule', {
eventPattern: {
source: ['aws.controltower'],
detail: {
eventName: ['CreateManagedAccount']
}
}
})
const eventDLQ = new sqs.Queue(this, 'eventDLQ');
import boto3
import json
import os
import yaml
codebuild = boto3.client('codebuild')
ssm = boto3.client('ssm')
def on_event(event, context):
@mrpackethead
mrpackethead / singaporeVpc.ts
Last active January 7, 2023 17:58
singaporeVpc.ts
import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
import {
aws_ec2 as ec2
}
from 'aws-cdk-lib';
import * as raindancersNetwork from 'raindancers-network';
interface SingaporeVpcProps extends cdk.StackProps {
corenetwork: raindancersNetwork.CoreNetwork
import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
import {
aws_ec2 as ec2,
aws_s3 as s3,
}
from 'aws-cdk-lib';
import * as raindancersNetwork from 'raindancers-network';
import { FirewallRules } from './firewallpolicy'
import * as cdk from 'aws-cdk-lib';
import {
aws_networkfirewall as firewall,
}
from 'aws-cdk-lib';
import * as constructs from 'constructs';
export interface FirewallRulesProps {
cloudwanCidr: string;
import * as cdk from 'aws-cdk-lib';
import {
aws_ec2 as ec2,
}
from 'aws-cdk-lib';
import * as constructs from 'constructs';
import * as raindancersNetwork from 'raindancers-network';
export interface TgDXS2SProps extends cdk.StackProps{
import * as cdk from 'aws-cdk-lib';
import {
aws_ec2 as ec2,
aws_resourcegroups as resourcegroups,
}
from 'aws-cdk-lib'
import { Construct } from 'constructs';
// import * as sqs from 'aws-cdk-lib/aws-sqs';
import * as network from 'raindancers-network'
@mrpackethead
mrpackethead / main.ts
Created January 20, 2024 23:23
First CDK application
import {
App,
Stack,
StackProps,
aws_s3 as s3,
}
from 'aws-cdk-lib';
import * as core from 'aws-cdk-lib'
@mrpackethead
mrpackethead / staticSite.ts
Created January 21, 2024 07:59
Construct to build a static Site
import {
aws_route53 as r53,
aws_s3 as s3,
aws_certificatemanager as acm,
aws_cloudfront as cloudfront,
aws_s3_deployment as s3deploy,
aws_route53_targets as targets,
aws_cloudfront_origins as cloudfront_origins,
aws_iam as iam,
}
import {
aws_route53 as r53,
aws_s3 as s3,
aws_certificatemanager as acm,
aws_cloudfront as cloudfront,
aws_s3_deployment as s3deploy,
aws_route53_targets as targets,
aws_cloudfront_origins as cloudfront_origins,
aws_iam as iam,
}