Skip to content

Instantly share code, notes, and snippets.

@vodolaz095
Last active February 11, 2016 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vodolaz095/f54e87d11cf1bd74e29c to your computer and use it in GitHub Desktop.
Save vodolaz095/f54e87d11cf1bd74e29c to your computer and use it in GitHub Desktop.
Install dependencies required by some amazon related project

I assume you have actual Fedora 23 distro. For other distros scripts can differ

Build aws-apigateway-importer


	$ git clone https://github.com/awslabs/aws-apigateway-importer
	$ cd aws-apigateway-importer/
	$ sudo docker build -t aws-apigateway-importer .
	$ sudo docker run aws-apigateway-importer

	Usage: aws-api-import [options] Path to API definition file to import
	  Options:
	    --create, -c
	       Create a new API
	       Default: false
	    --deploy, -d
	       Stage used to deploy the API (optional)
	        --help
	       
	       Default: false
	    --profile, -p
	       AWS CLI profile to use (optional)
	       Default: default
	        --raml-config
	       RAML file for API Gateway metadata (optional)
	    --region, -r
	       AWS region to use (optional)
	    --test, -t
	       Delete the API after import (create only)
	       Default: false
	    --update, -u
	       API ID to import swagger into an existing API

Get AWS cli tool

	$ sudo 'dnf install python-pip'
	$ sudo 'pip install aws-shell'

Install jq

	$ mkdir -p $HOME/bin
	$ cd $HOME/bin
	$ wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
	$ mv jq-linux jq
	$ chmod a+x jq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment