Skip to content

Instantly share code, notes, and snippets.

@lorengordon
lorengordon / keybase.md
Created September 23, 2017 21:05
keybase.md

Keybase proof

I hereby claim:

  • I am lorengordon on github.
  • I am lorengordon (https://keybase.io/lorengordon) on keybase.
  • I have a public key ASDgBddMHCmvLj57gWIWGwjDrRCRbNjGlttM6Aw62Kkp2Qo

To claim this, I am signing this object:

@lorengordon
lorengordon / tf-build-plugins.sh
Last active November 16, 2017 14:08
Build Cross-Platform Terraform Plugins
AWS_PROVIDER_REPO=https://github.com/terraform-providers/terraform-provider-aws.git
AWS_PROVIDER_BRANCH=master
# Pre-req: Have a working go install :-)
# Get go: https://golang.org/dl/
# Install go: https://golang.org/doc/install
#curl -LO https://redirector.gvt1.com/edgedl/go/go1.9.2.linux-amd64.tar.gz
#sudo tar -C /usr/local -xvzf go*.linux-amd64.tar.gz
sudo yum -y install git
@lorengordon
lorengordon / Microsoft.PowerShell_profile.ps1
Created January 29, 2018 18:34
Powershell profile with admin check
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(`
[Security.Principal.WindowsBuiltInRole] "Administrator"))
{
Write-Warning "Skipping functions that require elevated permissions..."
}
else
{
# Do admin stuff
}
@lorengordon
lorengordon / common_sso_permission_sets.tf
Last active June 16, 2023 23:30
More examples using plus3it/terraform-aws-tardigrade-sso-admin
# This configuration creates permission sets that will be assigned across many accounts. This
# would be managed centrally, and the provider for this config should be set to the management
# account for AWS Identity Center.
module "sso_admin" {
source = "git::https://github.com/plus3it/terraform-aws-tardigrade-sso-admin.git?ref=2.0.1"
sso_admin = {
permission_sets = local.permission_sets
}