GithubHelp home page GithubHelp logo

xuwang / aws-linux-cluster Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 6.0 65 KB

Code examples to create a 3-tier Linux cluster on AWS with Terraform

License: MIT License

Makefile 19.96% HCL 49.46% Shell 30.59%

aws-linux-cluster's People

Contributors

snowsky avatar su-sfeng avatar xueshanf avatar xuwang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

aws-linux-cluster's Issues

error starting make command

When i start the script make, i have this error

Getting AWS account number...
parse error: Invalid numeric literal at line 1, column 5

Generate tf provider

/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

Generate default AMI ids

/root/aws-linux-cluster/scripts/get-ami.sh > /root/aws-linux-cluster/build/ami.tf
make: *** [update_ami] Error 1

Any help please ?

get-ami.sh error

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?

[gen_certs] Error 2

vagrant@vagrant-ubuntu-vivid-64:/aws-linux-cluster$ aws configure --profile mycluster
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:
/aws-linux-cluster$ make
Getting AWS account number...

Generate tf provider

/home/vagrant/aws-linux-cluster/scripts/gen-provider.sh > /home/vagrant/aws-linux-cluster/build/provider.tf

Generate default AMI ids

/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
...+++
.........................+++

writing new private key to 'rootCA-key.pem'

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.