Skip to content

Instantly share code, notes, and snippets.

View warp3r's full-sized avatar

Jordi Molina warp3r

View GitHub Profile
2020/08/21 14:58:36 [INFO] Terraform version: 0.12.29
2020/08/21 14:58:36 [INFO] Go runtime version: go1.13.15
2020/08/21 14:58:36 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan", "-var-file=xxx-prod.tfvars", "-out=prod.plan"}
2020/08/21 14:58:36 [DEBUG] Attempting to open CLI config file: /Users/jordimolina/.terraformrc
2020/08/21 14:58:36 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/08/21 14:58:36 [DEBUG] checking for credentials in "/Users/jordimolina/.terraform.d/plugins"
2020/08/21 14:58:36 [INFO] CLI command args: []string{"plan", "-var-file=xxx-prod.tfvars", "-out=prod.plan"}
2020/08/21 14:58:36 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2020/08/21 14:58:36 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2020/08/21 14:58:36 [DEBUG] New state was assigned lineage "7c25eb69-11e0-a060-2c47-0e32b39282e0"
@warp3r
warp3r / massive_ami_and_snapshot_sharing_with_aws_cli.txt
Created January 24, 2017 16:16
Massive AMI and Snapshot sharing between accounts with AWS CLI
#!/bin/bash
# In some cases you may need to share a huge amount of AMIs between two AWS accounts.
# You can do it through the web interface of AWS or you can do it with the CLI.
#
# With the web interface it's slow as you need to do several clicks per AMI.
# With the CLI you need to know the snapshots that conform every AMI you want to share as you need
# to individually share them as well.
#
# AWS documentation tells you how to do it "theoretically" but no practical example
# (see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-explicit.html)
@warp3r
warp3r / clean_orphaned_snapshots.py
Created March 23, 2016 14:05 — forked from mjbommar/clean_orphaned_snapshots.py
Cleans orphaned snapshots from an EC2 account. Requires boto config.
'''
@author Bommarito Consulting, LLC
@date 20120622
Identify and, if requested, remove orphaned snapshots from an EC2 account.
'''
# Imports
import boto
@warp3r
warp3r / zabbix2-tomcat7-jmx-nossl-template.xml
Last active August 29, 2015 14:25 — forked from hgomez/zabbix2-tomcat7-jmx-nossl-template.xml
Zabbix 2.0 Tomcat 7 JMX Template (with and without SSL)
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2015-01-21T15:24:57Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>