Make sure the user roles that need to access the instance have ssm:StartSession
and ssm:TerminateSession
permissions granted.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Resources: | |
AccountPasswordPolicyC318930E: | |
Type: Custom::AWS | |
Properties: | |
ServiceToken: | |
Fn::GetAtt: | |
- AWS679f53fac002430cb0da5b7982bd22872D164C4C | |
- Arn | |
Create: | |
service: IAM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as sns from '@aws-cdk/aws-sns'; | |
import * as cdk from '@aws-cdk/core'; | |
import { PolicyStatementBuilder } from '../lib/policy'; | |
import { DeployableStack } from '../lib/deployable'; | |
import { PhysicalStackProps } from '../lib/physical'; | |
/** EmptyStack is supposed to contain nothing. It is used when we want to remove all of the constructs | |
* from a stack, because CloudFormation will not destroy a stack just because we removed it. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eo pipefail | |
USAGE='convert-to-prores inputfile [outputfile] [prores setting 1 to 5, default 3]' | |
DESCRIPTION=' | |
Converts a video file to ProRes for playback on HyperDeck or NLE | |
The outputfile is optional, if not provided it will be based on the input file name | |
The profile switch takes an integer from -1 to 5 to match the ProRes profiles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MY_DOMAIN = "example.com" | |
const START_PAGE = "https://www.notion.so/example" | |
addEventListener('fetch', event => { | |
event.respondWith(fetchAndApply(event.request)) | |
}) | |
const corsHeaders = { | |
"Access-Control-Allow-Origin": "*", | |
"Access-Control-Allow-Methods": "GET, HEAD, POST,PUT, OPTIONS", |
- Supports shipping python in the package
- Linking pip deps with cc_library
- Build all pip deps from source with the bazel cc toolchains
- building python from source
- support python2/3 on each binary, library, test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_video_file="${1}" | |
ffmpeg -i $_video_file -vf palettegen pal.png | |
ffmpeg -i $_video_file -i pal.png -lavfi paletteuse=bayer_scale=4:dither=bayer -r 18 video.gif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LambdaSortGDFindings: | |
Type: 'AWS::Lambda::Function' | |
Condition: AuditAccountPrimary # only in primary audit region, next to S3 bucket | |
Properties: | |
Code: | |
ZipFile: | | |
import boto3, csv, os, json | |
s3_resource = boto3.resource('s3') | |
s3_client = boto3.client('s3') | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Html exposing (Html, Attribute) | |
import Html | |
import Html.Attributes | |
import Html.Events exposing (..) | |
import List | |
import String | |
------------------ | |
--- HELPER CODE -- | |
------------------ |