This file contains hidden or 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
sudo yum install -y jq wget unzip | |
cd ~ | |
version=$(curl https://api.github.com/repos/hashicorp/terraform/releases/latest --silent | jq ".tag_name" -r) | |
version=$(echo $version | sed 's/v//g') # get rid of 'v' from version number | |
echo "Installing Terraform $version." | |
url="https://releases.hashicorp.com/terraform/$version/terraform_$(echo $version)_linux_amd64.zip" | |
wget $url | |
unzip "terraform_$(echo $version)_linux_amd64.zip" | |
chmod +x terraform | |
sudo mv terraform /usr/local/bin/ |
This file contains hidden or 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
brew install jq | |
brew install wget | |
cd ~ | |
version=$(curl https://api.github.com/repos/hashicorp/terraform/releases/latest --silent | jq ".tag_name" -r) | |
version=$(echo $version | sed 's/v//g') # get rid of 'v' from version number | |
echo "Installing Terraform $version." | |
url="https://releases.hashicorp.com/terraform/$version/terraform_$(echo $version)_darwin_amd64.zip" | |
wget $url | |
unzip "terraform_$(echo $version)_darwin_amd64.zip" | |
chmod +x terraform |
This file contains hidden or 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
Import-Module AWSPowerShell | |
# So our AWS Scripts work well with Proxies. | |
$Browser = New-Object System.Net.WebClient | |
$Browser.Proxy.Credentials =[System.Net.CredentialCache]::DefaultNetworkCredentials | |
$BucketName = 'TestBucket' | |
$Region = 'ex-ampleregion-1' | |
$TargetDirectory = 'C:\BucketOutput\' | |
$AllObjects = Get-S3Object $BucketName -KeyPrefix '/' -Region $Region |
This file contains hidden or 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
Import-Module AWSPowerShell | |
# So our AWS Scripts work well with Proxies. | |
$Browser = New-Object System.Net.WebClient | |
$Browser.Proxy.Credentials =[System.Net.CredentialCache]::DefaultNetworkCredentials | |
$StackName = 'TestStack' | |
$TemplateKey = '/CloudFormation/template.json' | |
$FileLocation = 'C:\Temp\template.json' | |
$BucketName = 'test-bucket' |
This file contains hidden or 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "EC2AccessToS3BucketOnSeparateAccount", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::<account number>:root" | |
}, | |
"Action": [ |
This file contains hidden or 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "EC2AccessToS3BucketOnSeparateAccount", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:GetObject", | |
"s3:ListBucketByTags", | |
"s3:GetBucketTagging", |
This file contains hidden or 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 | |
Updates the SimplePSLogging Module from GitHub. | |
.DESCRIPTION | |
Checks the current releases on GitHub. If there is a new release, downloads the source | |
files, copies them to the modules directory, and reloads the current runspace with | |
the new module. |
NewerOlder