Skip to content
Permalink
Browse files

feat: add ec2 ami bundler tool

  • Loading branch information...
etienne-napoleone committed May 30, 2019
1 parent 4bba484 commit 37a0c3c2bd0c06c2e0c883cdb25f7dd00119860d
Showing with 11 additions and 7 deletions.
  1. +2 −1 .gitignore
  2. +9 −6 AWS/private-18-04.json
@@ -1 +1,2 @@
*.pem
*.pem
.env
@@ -11,14 +11,17 @@
{
"type": "shell",
"inline": [
"apt -y update",
"apt -y upgrade",
"apt -y install git",
"sudo apt -y update",
"sudo apt -y upgrade",
"sudo apt -y install git build-essential golang unzip ruby",
"git clone https://github.com/tomochain/tomochain",
"cd tomochain",
"make all",
"sudo mv build/bin/puppeth /usr/local/bin/",
"sudo mv build/bin/tomo /usr/local/bin/"
"sudo mv build/bin/tomo /usr/local/bin/",
"wget http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.zip",
"sudo mkdir -p /usr/local/ec2",
"sudo unzip ec2-ami-tools.zip -d /usr/local/ec2"
]
}
],
@@ -28,11 +31,11 @@
"access_key": "{{user `aws_access_key`}}",
"account_id": "{{user `aws_account_id`}}",
"ami_name": "tomochain-private-{{isotime \"2006-01-02\" | clean_resource_name}}",
"instance_type": "a1.large",
"instance_type": "t2.medium",
"region": "ap-southeast-1",
"s3_bucket": "{{user `aws_s3_bucket`}}",
"secret_key": "{{user `aws_secret_key`}}",
"source_ami": "ami-0355471dc9f264631",
"source_ami": "ami-0dad20bd1b9c8c004",
"x509_cert_path": "{{user `aws_x509_cert_path`}}",
"x509_key_path": "{{user `aws_x509_key_path`}}"
}]

0 comments on commit 37a0c3c

Please sign in to comment.
You can’t perform that action at this time.