This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Reads PowerShell environment variables file to upload to AWS Lambda | |
.DESCRIPTION | |
The .env_lambda script is made of the following steps: | |
1. Skips the first three lines of the .env file | |
2. Retrieves the contents of each line after the first ":" | |
3. Joins all variables into a comma-separated string | |
4. Uploads variables up to AWS Lambda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########## | |
## 1. Save file on mgmt host. | |
## - change 'COMPUTERNAME' to target hostname | |
########## | |
Configuration Disable-UAC { | |
Import-DscResource -ModuleName PsDesiredStateConfiguration | |
Import-DscResource -ModuleName xSystemSecurity -Name xUac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# References: | |
# - https://github.com/RobBiddle/ACMESharpRoute53Automation | |
# - https://github.com/ebekker/ACMESharp/wiki/Quick-Start | |
# - https://pkisharp.github.io/ACMESharp-docs/Quick-Start | |
# - https://www.frankysweb.de/exchange-2016-lets-encrypt-zertifikat-erneuern/ | |
### | |
$BaseDomain = "clancampbell.id.au" | |
$FedServiceName = "sts.$BaseDomain" |
NewerOlder