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
<?xml version='1.0' encoding='UTF-8'?> | |
<project> | |
<actions/> | |
<description></description> | |
<keepDependencies>false</keepDependencies> | |
<properties/> | |
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.5.2"> | |
<configVersion>2</configVersion> | |
<userRemoteConfigs> | |
<hudson.plugins.git.UserRemoteConfig> |
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
#!/usr/bin/env bash | |
# | |
# Get the value of a tag for a running EC2 instance. | |
# | |
# This can be useful within bootstrapping scripts ("user-data"). | |
# | |
# Note the EC3 instance needs to have an IAM role that lets it read tags. The policy | |
# JSON for this looks like: | |
# | |
# { |
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
def get_iam_client(): | |
""" | |
Get identity and access management client | |
""" | |
return boto3.client('iam') |
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
import boto3 | |
from botocore.exceptions import ClientError | |
from datetime import datetime, timezone | |
import traceback | |
from time import sleep | |
RECIPIENTS = ["recipient_user@abc.com"] | |
SENDER = "John Doe <johndoe@abc.com>" | |
LAST_ACCESS_THRESHOLD = 90 |
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
const mysql = require('mysql'); | |
var config = require('./config.json'); | |
exports.handler = function(event, context, callback) { | |
var pool = mysql.createPool({ | |
host : config.dbhost, | |
user : config.dbuser, | |
password : config.dbpassword, |
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
# Javascript Node 8 simple CircleCI 2.0 configuration file | |
# Eduardo San Martin Morote | |
# Check https://circleci.com/docs/2.0/language-javascript/ for more details | |
# Put this file in a .circleci/ folder | |
version: 2 | |
jobs: | |
build: | |
docker: |
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
version: 2 | |
workflows: | |
version: 2 | |
build: | |
jobs: | |
- test | |
jobs: | |
test: |
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
const removeSpaces = (str) => { | |
return str.replace(/^\s+|\s+$/g, ""); | |
} | |
const DELIMITER = '|'; | |
const csvJSON = (csv) => { | |
let lines = csv.split("\n"); |
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
Autoscaling. | |
◾Understand autoscaling inside and out. | |
◾Make sure you know the differences between deploying with and without Cloudformation (as there are some deployment methods you can do with Cloudformation that you can’t without) and the command or JSON syntax to perform them. | |
◾Understand lifecycle hooks and the autoscaling stages they run in | |
◾Understand launch configurations and how they work and are updated (hint: You must replace them) | |
◾Understand why you may need to place an instance into STANDBY state | |
•Elastic Beanstalk. | |
◾You’ll need to know this to an advanced level. | |
◾Understand what stacks Beanstalk supports natively and how you would deploy a stack it doesn’t (hint: Use Docker). |
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
// Use this code snippet in your app. | |
// If you need more information about configurations or implementing the sample code, visit the AWS docs: | |
// https://aws.amazon.com/developers/getting-started/nodejs/ | |
// Load the AWS SDK | |
DEPLOYMENT_GROUP_NAME = process.env.DEPLOYMENT_GROUP_NAME | |
var AWS = require('aws-sdk'), | |
region = "us-west-2", | |
secretName = `${DEPLOYMENT_GROUP_NAME}`, |
OlderNewer