Git Product home page Git Product logo

aws-deploy's Introduction

How install Ansible

Ansible works by configuring client machines from a computer that has the Ansible components installed and configured.

It communicates over normal SSH channels to retrieve information from remote machines, issue commands, and copy files. Because of this, an Ansible system does not require any additional software to be installed on the client computers.

Installation

Use the this link:- https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-ansible-on-ubuntu-14-04

you have set your aws_access_key_id and aws_secret_access_key on following file (ansible/inventory/ec2.ini)

aws_access_key_id = XXXXXXXXXXXXXXXXXXXXXXXXXXXX
aws_secret_access_key = XXXXXXXXXXXXXXXXXXXXXXXXXXXX
sudo apt update
sudo apt install software-properties-common
sudo apt-add-repository ppa:ansible/ansible

sudo apt update
sudo apt install ansible

cat ~/.ssh/id_rsa.pub


sudo apt update
sudo apt install python

Usage

cd ..../aws-deploy/ansible/
ssh-keygen -R 172.16.16.152
ssh-copy-id rezuser@172.16.16.152
ssh rezuser@172.16.16.152

ansible all -m ping

ansible-playbook playbook-tomcat-server.yml --ask-pass

or

ansible-playbook playbook-tomcat-server.yml --ask-become-pass

How install Terraform

Terraform must first be installed on your machine. Terraform is distributed as a binary package for all supported platforms and architectures. This page will not cover how to compile Terraform from source, but compiling from source is covered in the documentation for those who want to be sure they're compiling source they trust into the final binary.

Installation

Use the this link:-

you have set your access_key and secret_key on following file (terraform/variables.tf)

variable "access_key" {  default="XXXXXXXXXXXXXXXXXXXXXXXXXXXX"  }
variable "secret_key" {  default="XXXXXXXXXXXXXXXXXXXXXXXXXXXX"  }
sudo apt-get install unzip

wget https://releases.hashicorp.com/terraform/0.11.10/terraform_0.11.10_linux_amd64.zip

unzip terraform_0.11.10_linux_amd64.zip


sudo mv terraform /usr/local/bin/


terraform --version 

Usage

cd ..../aws-deploy/terraform/

terraform init

terraform apply

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

aws-deploy's People

Watchers

Thusitha Indunil Dissanayaka avatar

Forkers

v4ms1

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.