Skip to content

Instantly share code, notes, and snippets.

View suhasulun's full-sized avatar

Süha Sülün suhasulun

View GitHub Profile
{
"Comment": "A simple minimal example of the States language",
"StartAt": "ScaleInJobStarts",
"States": {
"ScaleInJobStarts": {
"Type": "Task",
"Resource": "arn:aws:lambda:eu-west-2:684695514035:function:ScaleIn",
"Retry": [
{
"ErrorEquals": ["HandledError"],
console.log('Loading event');
var aws = require("aws-sdk");
function describeAutoScalingGroups(event, context) {
var autoscaling = new aws.AutoScaling();
var params = {
AutoScalingGroupNames: [
".bankweekdays"
]
#!/bin/sh
set -e
# This script is meant for quick & easy install via:
# $ curl -fsSL get.docker.com -o get-docker.sh
# $ sh get-docker.sh
#
# For test builds (ie. release candidates):
# $ curl -fsSL test.docker.com -o test-docker.sh
# $ sh test-docker.sh
#!/bin/sh
set -e
# This script is meant for quick & easy install via:
# $ curl -fsSL get.docker.com -o get-docker.sh
# $ sh get-docker.sh
#
# For test builds (ie. release candidates):
# $ curl -fsSL test.docker.com -o test-docker.sh
# $ sh test-docker.sh
#!/bin/sh
set -e
# This script is meant for quick & easy install via:
# $ curl -fsSL get.docker.com -o get-docker.sh
# $ sh get-docker.sh
#
# For test builds (ie. release candidates):
# $ curl -fsSL test.docker.com -o test-docker.sh
# $ sh test-docker.sh
#!/bin/sh
set -e
# This script is meant for quick & easy install via:
# $ curl -fsSL get.docker.com -o get-docker.sh
# $ sh get-docker.sh
#
# For test builds (ie. release candidates):
# $ curl -fsSL test.docker.com -o test-docker.sh
# $ sh test-docker.sh
#!/bin/sh
set -e
# This script is meant for quick & easy install via:
# $ curl -fsSL get.docker.com -o get-docker.sh
# $ sh get-docker.sh
#
# For test builds (ie. release candidates):
# $ curl -fsSL test.docker.com -o test-docker.sh
# $ sh test-docker.sh
#!/bin/sh
set -e
# This script is meant for quick & easy install via:
# $ curl -fsSL get.docker.com -o get-docker.sh
# $ sh get-docker.sh
#
# For test builds (ie. release candidates):
# $ curl -fsSL test.docker.com -o test-docker.sh
# $ sh test-docker.sh
#!/bin/sh
set -e
# This script is meant for quick & easy install via:
# $ curl -fsSL get.docker.com -o get-docker.sh
# $ sh get-docker.sh
#
# For test builds (ie. release candidates):
# $ curl -fsSL test.docker.com -o test-docker.sh
# $ sh test-docker.sh
PS C:\Users\Suha\Desktop\test_Env> packer validate packer.json
Template validated successfully.
PS C:\Users\Suha\Desktop\test_Env> packer build -var ‘aws_access_key=AKIAJOLN6HYMWIDFNZOA’ -var ‘aws_secret_key=WJBen0fMGxmiKlks2q9
CrQQ4C/Nhacy55YlAC4nh’ packer.json
amazon-ebs output will be in this color.
==> amazon-ebs: Prevalidating AMI Name: rancher-master 1529683817
amazon-ebs: Found Image ID: ami-5daa463a
==> amazon-ebs: Creating temporary keypair: packer_5b2d1f69-d44b-823b-2122-64390da5e227
==> amazon-ebs: Creating temporary security group for this instance: packer_5b2d1f6e-19a3-2f88-9ea2-927b21b9bdaf