View helloworld-lambda.yml
This file contains 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
######## | |
# Deploys a "Hello World" Lambda Function | |
# @createdby Christian Dechery | |
# @date 25-nov-2022 | |
######## | |
AWSTemplateFormatVersion: "2010-09-09" | |
Description: Deploys a very basic "Hello World" Lambda function |
View cfn-cmdline-gen.py
This file contains 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
# You need to install cfn-tools with "pip install cfn_flip" | |
import sys | |
from cfn_tools import load_yaml | |
try: | |
INPUT_FILE = sys.argv[1] | |
except Exception as e: | |
print('No input file!\nUsage: python cfn-cmdline-gen.py template.yml [separator-char]') | |
exit(1) |
View envinspect.config
This file contains 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
packages: | |
yum: | |
jq: [] | |
container_commands: | |
01-getenv-info: | |
command: | | |
ENV_ID=`{"Ref": "AWSEBEnvironmentId" }` | |
ENV_NAME=`{"Ref": "AWSEBEnvironmentName" }` | |
echo "env.id="$ENV_ID > /tmp/awseb.properties |
View s3edit.sh
This file contains 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/sh | |
set -e | |
FILE=$(basename $1) | |
aws s3 cp "s3:/"$1 . | |
nano $FILE | |
read -p "Atualizar no S3? [s/n] " -n 1 -r |
View get_ebenvs_ips.sh
This file contains 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/sh | |
#################################################### | |
# por: Christian Dechery | |
# objetivo: obtem os enderecos IP de todas as instancias de aplicacoes | |
# rodando no ElasticBeanstalk | |
################################################### | |
envs=("tecvirt" "hmlg" "mock" "hmlg2" "prod") | |
cat base_hosts > new_hosts |