Skip to content

Instantly share code, notes, and snippets.

View naamancampbell's full-sized avatar

Naaman Campbell naamancampbell

  • Brisbane, Australia
View GitHub Profile
@naamancampbell
naamancampbell / CloudFormation-PowerShell-Creds.ps1
Last active May 10, 2019 08:43 — forked from davefunkel/Script-Template-WithCreds.ps1
Generates and distributes encrypted passwords for use with PowerShell scripts used in CloudFormation templates.
<#
.SYNOPSIS
Generates and distributes encrypted passwords for use with PowerShell scripts used in CloudFormation templates.
.DESCRIPTION
The CloudFormation-PowerShell-Creds script is designed to be run prior to running a CloudFormation stack
then called again from within the CloudFormation template. The purpose is to avoid the use of cleartext
passwords in CloudFormation templates/PowerShell scripts.
There are three main components of this script: