Skip to content

Instantly share code, notes, and snippets.

Avatar

Meraj Rasool Khattak mrkkhattak

View GitHub Profile
View terraform.log
xxs-MacBook-Pro:terraform xx$ TF_LOG=DEBUG terraform apply
2019/12/26 14:45:51 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2019/12/26 14:45:51 [INFO] Terraform version: 0.12.18
2019/12/26 14:45:51 [INFO] Go runtime version: go1.12.13
2019/12/26 14:45:51 [INFO] CLI args: []string{"/Users/xx/bin/terraform", "apply"}
2019/12/26 14:45:51 [DEBUG] Attempting to open CLI config file: /Users/xx/.terraformrc
2019/12/26 14:45:51 Loading CLI configuration from /Users/xx/.terraformrc
2019/12/26 14:45:51 [INFO] CLI command args: []string{"apply"}
@mrkkhattak
mrkkhattak / aws-volume-backup.php
Created Mar 6, 2014
This script takes a snap shot of volume in AWS.
View aws-volume-backup.php
<?php
// Include the SDK using the Composer autoloader
require '/AWS_LIB_PATH/aws-autoloader.php';
use Aws\Common\Aws;
/// Create a service locator using a configuration file
$aws = Aws::factory(array(
'region' => 'eu-west-1', // define zone here
'key' => 'API KEY', // define your api key here
You can’t perform that action at this time.