I hereby claim:
- I am hammotime on github.
- I am hammo (https://keybase.io/hammo) on keybase.
- I have a public key ASBfy_XHf_QZFYwvRKOV7EmJwY0Yip522dpcSQviBketRQo
To claim this, I am signing this object:
<# | |
.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. |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "EC2AccessToS3BucketOnSeparateAccount", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:GetObject", | |
"s3:ListBucketByTags", | |
"s3:GetBucketTagging", |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "EC2AccessToS3BucketOnSeparateAccount", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::<account number>:root" | |
}, | |
"Action": [ |
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' |
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 |
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 |
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/ |
I hereby claim:
To claim this, I am signing this object:
$VersionInfo = ((Invoke-WebRequest https://api.github.com/repos/hashicorp/terraform/releases/latest).Content | ConvertFrom-Json).tag_name | |
$VersionInfo = $VersionInfo.Replace("v", "") | |
Write-Host "Installing Terraform $VersionInfo." | |
$Url = "https://releases.hashicorp.com/terraform/" + $VersionInfo + "/terraform_" + $VersionInfo + "_windows_amd64.zip" | |
$InstallDirectory = [Environment]::GetFolderPath([Environment+SpecialFolder]::ApplicationData) + "\Terraform" | |
if(Test-Path $InstallDirectory) { | |
Remove-Item $InstallDirectory -Recurse | |
} |
wget https://wordpress.org/latest.tar.gz | |
tar xvzf latest.tar.gz | |
sudo mv wordpress/ /var/www/<TENANT_NAME>-wp | |
sudo chown -R nginx:nginx /var/www/<TENANT_NAME>/ |