AWS Classroom Notes – Cloudformation – 24/Dec/2019

AWS Batch

  • Managed Service to Perform Batch Operations
  • To use create a docker image or use existing docker images
  • AWS helps in calling docker container with the command.
  • This container should execute the Batch job

JSON

  • It is Data Representation Format
  • Data is organized as name value pairs.
  • Syntax is
name: value
   value => number/text/boolean/list/object

  • Text name value. Text is represented by single or double quotes
"name": "QT"
  • Number name value
"age": 10
  • boolean value
"isonline": True
  • list
"courses": ["AWS", "DevOps", "Azure"]
  • Object: Multiple name value pairs
"address": {
    "Flat no": "208-B",
    "Building": "Nilgiri",
    "LandMark": "Metro Station"
}

YAML

  • It is Data Representation Format
  • Data is organized as name value pairs.
  • Syntax is
name: value
   value => number/text/boolean/list/object

  • Text name value. Text is represented by single or double quotes
"name": "QT"
  • Number name value
"age": 10
  • boolean value
"isonline": yes
  • list
"courses":
  - AWS
  - AZURE
  - DevOps
  • Object: Multiple name value pairs
"address":
  "Flat no": "208-B"
  "Building": "Nilgiri"
  "LandMark": "Metro Station"

Example:

  1. Write a JSON and YAML Representing Electronics Store:
{
    "Name": "Bajaj",
    "Address": {
        "Flat no": "208-B",
        "Building": "Nilgiri",
        "LandMark": "Metro Station"
    },
    "Categories": {
        "Consumer" : {
            "Samsung UHD 49" : {
                "price": 89327
            }
        }
    }
}
YAML

---
Name: Bajaj
Address:
  Flat no: 208-B
  Building: Nilgiri
  LandMark: Metro Station
Categories:
  Consumer:
    Samsung UHD 49:
      price: 89327

  1. Write a Json Representing Bank Accounts:
JSON
{
    "Name": "Khaja",
    "PAN": "klskdlfjs",
    "AADHAR": "xxxx-xxxx-xxxx-xxxx",
    "Savings": [
        {
            "Accountno" : 3982749832,
            "Balance": 8932473892743982732989234,

        }
    ],
    "Current": [],
    "FD": [],
    "PPF": []
}

YAML
---
Name: Khaja
PAN: klskdlfjs
AADHAR: xxxx-xxxx-xxxx-xxxx
Savings:
- Accountno: 3982749832
  Balance: 8.932473892743983e+24
Current: []
FD: []
PPF: []

By continuous learner

devops & cloud enthusiastic learner

Please turn AdBlock off
Social Network Widget by Acurax Small Business Website Designers

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%