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
require 'aws-sdk-ec2' | |
Puppet::Functions.create_function(:'amazon_aws::get_vpc') do | |
dispatch :up do | |
param 'String', :vpc_name | |
end | |
def up(vpc_name) | |
client = Aws::EC2::Client.new(region: 'us-west-2') | |
vpc_id = "" |
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
#!/usr/bin/ruby | |
# Assumptions. | |
# You have tagged your resources with a common tag. This tag is passed by the ENV var below. | |
# The security group name is the tag_name as well. | |
require 'aws-sdk-ec2' | |
tag_name = ENV['PT_tag_name'] |
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
grep -rl '/utils' ./ | xargs gsed -i "s+/utils+/lib/utils+g" |
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
#/bin/bash | |
function bold() | |
{ | |
echo "\033[1m${1}\033[22m" | |
} | |
function dim() | |
{ | |
echo "\033[2m${1}\033[22m" |
OlderNewer