Skip to content

Instantly share code, notes, and snippets.

@vjeffz
vjeffz / commands.json
Created July 10, 2021 13:57
A list of all the aws-cli command examples from https://docs.aws.amazon.com/cli/latest/reference/
This file has been truncated, but you can view the full file.
{
"acm": {
"AddTagsToCertificate": [
"aws acm add-tags-to-certificate --certificate-arn arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 --tags Key=Admin,Value=Alice Key=Purpose,Value=Website "
],
"DeleteCertificate": [
"aws acm delete-certificate --certificate-arn arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 "
],
"DescribeCertificate": [
"aws acm describe-certificate --certificate-arn arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 "
@vjeffz
vjeffz / image-builder.yaml
Last active January 25, 2024 09:06
AWS Image Builder CloudFormation Template
Parameters:
LatestAmiId:
Type: 'AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>'
Default: '/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2'
SubnetId:
Type: AWS::EC2::Subnet::Id
VPCId:
@vjeffz
vjeffz / read_kinesis_streams.py
Created October 15, 2017 23:32 — forked from narviis/read_kinesis_streams.py
Read data from Amazon Kinesis Streams
import boto3
# add your stream name
STREAM_NAME = '<stream_name>'
UPDATE_ITER_FREQ = 100
LIMIT = 2
client = boto3.client('kinesis')
@vjeffz
vjeffz / gist:3936168
Created October 23, 2012 01:41
Re-run a logon script
'http://community.spiceworks.com/scripts/show/823-re-run-a-logon-script
Dim objNet
Dim wshShell
Dim wshProcess
Dim domain, username, dc
Set objNet = CreateObject("WScript.NetWork")
Set wshShell = CreateObject("Wscript.Shell")
Set wshProcess = wshShell.Environment("Process")