View variables.tfvars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws_region="ap-south-1" | |
webservers_ami="ami-0e8e39877665a7c92" | |
sg_id="sg-040bb199e4dc62b01" | |
instance_type="t2.micro" | |
subnet_id=["subnet-042ded657db2e5d7f", "subnet-098ebd6cc26a1c9fe"] | |
instance_count=1 | |
instance_subnet_id="subnet-042ded657db2e5d7f" |
View variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "aws_region" { | |
default = "ap-southeast-1" | |
} | |
#variable "vpc_cidr" { | |
# default = "172.31.0.0/16" | |
#} | |
#variable "subnets_cidr" { | |
# type = list(string) |
View elb.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a new load balancer | |
resource "aws_elb" "terra-elb" { | |
name = "terra-elb" | |
#availability_zones = ["${var.azs}"] | |
subnets = "${var.subnet_id}" | |
security_groups = ["${var.sg_id}"] | |
listener { | |
instance_port = 80 |
View instances.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_instance" "webservers" { | |
count = "${var.instance_count}" | |
ami = "${var.webservers_ami}" | |
instance_type = "${var.instance_type}" | |
security_groups = ["${var.sg_id}"] | |
subnet_id = "${var.instance_subnet_id}" | |
} |
View rds.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module "db" { | |
source = "terraform-aws-modules/rds/aws" | |
version = "~> 2.0" | |
identifier = "demodb" | |
engine = "mysql" | |
engine_version = "5.7.19" | |
instance_class = "db.t2.micro" | |
allocated_storage = 5 |
View task9.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pyttsx3 as psy | |
import speech_recognition as sr | |
print(''' | |
\t\t\t\t\t\t\tCommands Available:\n | |
\t\t\t\t\t\t\t1. Linux Commands Menu | |
\t\t\t\t\t\t\t2. Setup Hadoop cluster | |
\t\t\t\t\t\t\t3. Docker Commands Menu | |
\t\t\t\t\t\t\t4. AWS configuration Menu |
View task4-main.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'RegistrationPage.dart'; | |
import 'LogIn.dart'; | |
import 'first-screen.dart'; | |
import 'package:firebase_core/firebase_core.dart'; | |
import 'package:flutter/material.dart'; | |
import 'HomePage.dart'; | |
void main() async { | |
WidgetsFlutterBinding.ensureInitialized(); | |
await Firebase.initializeApp(); |
View task4-auth.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'LogIn.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:firebase_auth/firebase_auth.dart'; | |
import 'HomePage.dart'; | |
class IntroScreen extends StatefulWidget { | |
@override | |
_IntroScreenState createState() => _IntroScreenState(); | |
} |
View task4-homepage.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'cmd.dart'; | |
import 'package:firebase_auth/firebase_auth.dart'; | |
import 'package:flutter/material.dart'; | |
class HomePage extends StatefulWidget { | |
@override | |
_HomePageState createState() => _HomePageState(); | |
} | |
class _HomePageState extends State<HomePage> { |
View task4-terminal.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
import 'package:firebase_auth/firebase_auth.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:cloud_firestore/cloud_firestore.dart'; | |
import 'package:http/http.dart' as http; | |
class Body extends StatefulWidget { | |
@override | |
_BodyState createState() => _BodyState(); | |
} |
NewerOlder