xuwang / aws-linux-cluster Goto Github PK
View Code? Open in Web Editor NEWCode examples to create a 3-tier Linux cluster on AWS with Terraform
License: MIT License
Code examples to create a 3-tier Linux cluster on AWS with Terraform
License: MIT License
When i start the script make, i have this error
Getting AWS account number...
parse error: Invalid numeric literal at line 1, column 5
/root/aws-linux-cluster/scripts/gen-provider.sh > /root/aws-linux-cluster/build/provider.tf
parse error: Invalid numeric literal at line 1, column 5
parse error: Invalid numeric literal at line 1, column 5
/root/aws-linux-cluster/scripts/get-ami.sh > /root/aws-linux-cluster/build/ami.tf
make: *** [update_ami] Error 1
Any help please ?
When running make in Vagrant:
error: startswith is not defined
| map(select(( .Name != null) and ( .Name | startswith("RHEL-7.1"))))
^^^^^^^^^^
Perhaps jq needs to be upgraded to 1.4 in Vagrant?
vagrant@vagrant-ubuntu-vivid-64:/aws-linux-cluster$ aws configure --profile mycluster/aws-linux-cluster$ make
AWS Access Key ID [*************_RPJQ]:
AWS Secret Access Key [_*************UyIc]:
Default region name [us-east-1]:
Default output format [None]:
vagrant@vagrant-ubuntu-vivid-64:
Getting AWS account number...
/home/vagrant/aws-linux-cluster/scripts/gen-provider.sh > /home/vagrant/aws-linux-cluster/build/provider.tf
/home/vagrant/aws-linux-cluster/scripts/get-ami.sh > /home/vagrant/aws-linux-cluster/build/ami.tf
cp -rf /home/vagrant/aws-linux-cluster/resources/terraforms/module-vpc.tf /home/vagrant/aws-linux-cluster/build
cd /home/vagrant/aws-linux-cluster/build; terraform get -update;
Get: file:///home/vagrant/aws-linux-cluster/modules/iam (update)
Get: file:///home/vagrant/aws-linux-cluster/modules/s3 (update)
Get: file:///home/vagrant/aws-linux-cluster/modules/vpc (update)
cp -rf /home/vagrant/aws-linux-cluster/resources/terraforms/module-s3.tf /home/vagrant/aws-linux-cluster/build
cd /home/vagrant/aws-linux-cluster/build; terraform get -update;
Get: file:///home/vagrant/aws-linux-cluster/modules/iam (update)
Get: file:///home/vagrant/aws-linux-cluster/modules/s3 (update)
Get: file:///home/vagrant/aws-linux-cluster/modules/vpc (update)
cp -rf /home/vagrant/aws-linux-cluster/resources/terraforms/module-iam.tf /home/vagrant/aws-linux-cluster/build
cd /home/vagrant/aws-linux-cluster/build; terraform get -update;
Get: file:///home/vagrant/aws-linux-cluster/modules/iam (update)
Get: file:///home/vagrant/aws-linux-cluster/modules/s3 (update)
Get: file:///home/vagrant/aws-linux-cluster/modules/vpc (update)
make[1]: Entering directory '/home/vagrant/aws-linux-cluster/build/certs'
echo "creating rootCA-key.pem and rootCA.pem ..."
creating rootCA-key.pem and rootCA.pem ...
openssl req -x509 -new -nodes -days 9999 -config rootCA.cnf -out rootCA.pem
Generating a 2048 bit RSA private key
...+++
.........................+++
chmod 600 .pem
echo "creating the etcd-key.pem and etcd.csr...."
creating the etcd-key.pem and etcd.csr....
openssl req -new -out etcd.csr -config etcd.cnf
error on line -1 of etcd.cnf
140117452707472:error:02001002:system library:fopen:No such file or directory:bss_file.c:169:fopen('etcd.cnf','rb')
140117452707472:error:2006D080:BIO routines:BIO_new_file:no such file:bss_file.c:172:
140117452707472:error:0E078072:configuration file routines:DEF_LOAD:no such file:conf_def.c:197:
Makefile:24: recipe for target '/home/vagrant/aws-linux-cluster/build/certs//etcd.pem' failed
make[1]: ** [/home/vagrant/aws-linux-cluster/build/certs//etcd.pem] Error 1
make[1]: Leaving directory '/home/vagrant/aws-linux-cluster/build/certs'
resources/makefiles/init.mk:40: recipe for target 'gen_certs' failed
make: *** [gen_certs] Error 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.