Grab a service account API credential as a JSON file
cat .json | base64 | pbcopy
Add the following environment variables
GCE_URL
| return request({ | |
| method: 'POST', | |
| url: 'https://api.fastly.com/service/' + main.SERVICE_ID + '/version/' + this.number + '/vcl', | |
| headers: { | |
| 'Fastly-Key': main.API_KEY | |
| }, | |
| form: { | |
| name: 'gulp-fastly-uploaded-vcl', | |
| file: encodeURIComponent(String(file.contents)) | |
| } |
| 0xbD08E418EB33ecC56b2234d860397f77143cD2F3 |
| #!/bin/sh | |
| # /etc/init.d/metabase | |
| ### BEGIN INIT INFO | |
| # Provides: Metabase | |
| # Required-Start: $local_fs $network $named $time $syslog | |
| # Required-Stop: $local_fs $network $named $time $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Description: Metabase analytics and intelligence platform | |
| ### END INIT INFO |
| var Promise = require('bluebird') | |
| var _ = require('lodash') | |
| var fs = require('fs') | |
| var contentful = require('contentful') | |
| var client = contentful.createClient({ | |
| space: '0eybfmw2qkbf', | |
| accessToken: process.env.CONTENTFUL_ACCESS_TOKEN, | |
| host: process.env.CONTENTFUL_HOST | |
| }) |
This file is a log of everything I've encountered when trying to migrate a Node.js, Elastic Beanstalk application from the Amazon Linux platform to the Amazon Liunx 2 platform. Here's why you should migrate: