I hereby claim:
- I am stevehoggnz on github.
- I am stevehogg (https://keybase.io/stevehogg) on keybase.
- I have a public key ASCkpu8ZPsaiafMHIqjcbuylMSAPLsK9h_SNeEVH-Ld7Sgo
To claim this, I am signing this object:
# jq reference: https://stedolan.github.io/jq/manual | |
# Get a list of each Lambda function that starts with ^test and output that as an array | |
# i.e. take the contents of the .Functions[] list, select the ones that have a .FunctionName property that | |
# starts with test, and record the .FunctionName value | |
aws lambda list-functions | jq '[ .Functions[] | select(.FunctionName | test("^test")) | .FunctionName ]' | |
# Create an array of new maps for Lambda functions | |
aws lambda list-functions | jq '[ .Functions[] | select(.FunctionName | test("^test")) | {name: .FunctionName, memory: .MemorySize} ]' |
I hereby claim:
To claim this, I am signing this object:
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Master template that includes nested templates", | |
"Parameters": { | |
"DeployBastion": { | |
"Description": "Should a bastion server be deployed?", | |
"Default": "No", | |
"Type": "String", | |
"AllowedValues": ["No", "Yes"] | |
} |
git clone https://github.com/awslabs/aws-mobile-react-native-starter.git | |
cd aws-mobile-react-native-starter | |
git fetch origin pull/49/head:feat/amplify-v2 | |
git checkout feat/amplify-v2 |
curl -H "Origin: http://example.com" --verbose https://fill-in-the-blanks.h4.nz/markdown/About.md |
"MyS3BucketPolicy": { | |
"Type": "AWS::S3::BucketPolicy", | |
"Properties": { | |
"Bucket": { "Ref": "MyS3Bucket" }, | |
"PolicyDocument" : { | |
"Version":"2012-10-17", | |
"Statement":[{ | |
"Sid": "PublicReadAccess", | |
"Effect": "Allow", | |
"Principal": "*", |
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "EC2 Bastion Server", | |
"Parameters": { | |
"VpcId": { | |
"Type": "AWS::EC2::VPC::Id", | |
"Description": "The VPC ID" | |
}, | |
"DeployBastion": { | |
"Description": "Should a bastion server be deployed?", |
{ | |
"Resources": { | |
"myS3Bucket": { | |
"Type" : "AWS::S3::Bucket", | |
"Properties" : {}, | |
"DeletionPolicy" : "Retain" | |
}, | |
"myEBSVolume": { | |
"Type":"AWS::EC2::Volume", | |
"Properties" : { |
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Mappings" : { | |
"RegionMap" : { | |
"us-east-1" : { | |
"AMI" : "ami-76f0061f" | |
}, | |
"us-west-1" : { | |
"AMI" : "ami-655a0a20" | |
}, |
{ | |
"Resources": { | |
"AutoScalingGroup": { | |
"Type": "AWS::AutoScaling::AutoScalingGroup", | |
"Properties": { | |
"AvailabilityZones": { "Fn::GetAZs": "" }, | |
"LaunchConfigurationName": { "Ref": "LaunchConfig" }, | |
"DesiredCapacity": "2", | |
"MinSize": "1", | |
"MaxSize": "4" |