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
{ | |
"variables": { | |
"ami_name": "", | |
"build_id": "", | |
"aws_region": "us-east-1", | |
"copy_aws_region": "us-east-2", | |
"ec2_instance_type": "", | |
"instance_profile": "", | |
"encrypt": "", | |
"kms_cmk": "", |
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
2019/08/07 18:08:53 [INFO] Packer version: 1.4.0 | |
2019/08/07 18:08:53 Packer Target OS/Arch: linux amd64 | |
2019/08/07 18:08:53 Built with Go Version: go1.12 | |
2019/08/07 18:08:53 Detected home directory from env var: /home/ec2-user | |
2019/08/07 18:08:53 Using internal plugin for azure-arm | |
2019/08/07 18:08:53 Using internal plugin for hcloud | |
2019/08/07 18:08:53 Using internal plugin for tencentcloud-cvm | |
2019/08/07 18:08:53 Using internal plugin for hyperv-iso | |
2019/08/07 18:08:53 Using internal plugin for hyperv-vmcx | |
2019/08/07 18:08:53 Using internal plugin for qemu |
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 | |
set -euo pipefail | |
prt () | |
{ | |
echo -e "\n\n" `date +'%Y-%m-%d %H:%M:%S'` "$1 \n" | |
} | |
prt "Installing Ruby" |
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
{ | |
"apiVersion": "2.4.9", | |
"apis": [ | |
{ | |
"operations": [{ "method": "GET" } ], | |
"path": "/v1/domains" | |
} | |
], | |
"models": { | |
"Error": { |
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 strict'; | |
const https = require('https'); | |
const url = require('url'); | |
function sendResponse(event, callback, logStreamName, responseStatus, responseData) { | |
const responseBody = JSON.stringify({ | |
Status: responseStatus, | |
Reason: `See the details in CloudWatch Log Stream: ${logStreamName}`, | |
PhysicalResourceId: logStreamName, |
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 node | |
var fs = require('fs'); | |
var path = require('path'); | |
var hbs = require('handlebars'); | |
var globals = JSON.parse(fs.readFileSync(__dirname+'/templates/common/globals.json')); | |
// Register Handlebars "helpers" | |
hbs.registerHelper('toLowerCase', function (str) { return str.toLowerCase(); }); | |
hbs.registerHelper('toUpperCase', function (str) { return str.toUpperCase(); }); |
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
{ | |
"IPAddresses": { | |
"Home" : ["1.2.3.4/32"], | |
"Home" : ["5.6.7.8/32"] | |
}, | |
"Regions" : [ | |
{ | |
"Id" : "us-east-1", | |
"Name" : "USEast1", |
NewerOlder