Skip to content

Instantly share code, notes, and snippets.

View austoonz's full-sized avatar

Andrew Pearce austoonz

View GitHub Profile
brew cask install quicklook-json
(Get-Item -Path 'HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters').GetValue('HostName')
@austoonz
austoonz / Lambda-SQS-Trigger
Last active January 15, 2019 03:38
A CloudFormation template sample to subscribe an AWS Lambda Function to an SQS Queue.
---
AWSTemplateFormatVersion: '2010-09-09'
Description: SQS Queue with Lambda Trigger
Parameters:
LambdaS3BucketName:
Type: String
Description: S3 Bucket Name holding the Lambda Function Package
@austoonz
austoonz / PowerShellAssociation.yml
Last active January 3, 2025 04:27
CloudFormation Templates
---
AWSTemplateFormatVersion: '2010-09-09'
Description: Creates a Systems Manager Association with inline PowerShell.
Resources:
Association:
Type: AWS::SSM::Association
Properties:
AssociationName: AssociationName
Name: AWS-RunPowerShellScript
Parameters:
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingCmdletAliases', '')]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingPlainTextForPassword', '')]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingWriteHost', '')]