GithubHelp home page GithubHelp logo

automation's Introduction

GUIDE

aws

  • boto3 - aws_get_memcached_filtered by VPC
    usage:
    vpc_list = ["vpc1","vpc2","vpc3"]
    getMemcachedList(vpc_list)

  • boto3 - auto_scaling_group_filtered by VPC
    usage:
    asg_list = get_asg(vpcid)
    /* this will write asg count in a file and can we read to set back the Minsize and Maxsize of the asg automatically. */

  • Controlling your AWS costs by deleting unused Amazon EBS volumes
    get_volumes_status.py

    Description:

    1. Get output with Volume ID/Creation Date/Attachments/Event name/Event Date
    2. Filter based on the requirement.
    3. Unsed volumes can be filtered for deletion to save cost.

    USAGE:

    1. Set the aws credentials
    2. python get_volumes_status.py

Shell

Salt

  • jinja - jinja load and merge yml
    usage:
    # usage.sls
    {% from "jinja_load_and_merge_yml.jinja" import config  with context  %}
    create_values_yaml:
    file.managed:
    - name: /opt/user.yaml
    - user: root
    - group: root
    - mode: 640
    - makedirs: True
    - contents: |
         item: {{ config.item1 }}
         userad: "{{ config.user_addrs }}"
1. Define versions  of the terraform and provider aws
2. Usage of Module for different resources
3. AWS authentication provider 
# Terraform first will check environment variables (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY) and if profile is defined then check in default location ~/.aws/credentials and if location is specified then in the speficied credentials file (if not found in default location)
4. Custom tfvars file(default naming it will auto pick is terraform.tfvars) which can be passed with to the terraform command using -f option 
5. Usage of locals and data

kapitan : Generic templated configuration management for Kubernetes, Terraform etc.

spin up the container has the kapiton installed with kubernetes example checkout from git
command to start container -
a) go to the kapitan directory
b) run docker-compose up -d

automation's People

Contributors

alok183 avatar

Watchers

James Cloos avatar

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.