Getting Started

All blocks

21min
what is aws ? this was a question i didn’t fully have an answer to, until now back when i was first trying to understand what amazon web services was , just like anyone else would , i searched on google amazon web services (aws) is a secure cloud services platform, offering compute power, database storage, content delivery and other functionality to help businesses scale and grow aws = lego blocks think of lego blocks very simple in appearance and functionality on their own however , put them together in the right way, with the right pieces, you can create something highly complex and amazing this is what aws allows aws is a compilation of many different lego pieces that all have their own simple functions although on their own they may lack much functionality; combined together with other services, they can construct a highly complex, practical application through aws, amazon has solely provided users with a huge lego toolbox where you can pick and choose which services you would like to use and for how long it is completely up to the user how they’ll construct their lego masterpiece one of the biggest reasons why aws has become so popular, is because of the complete freedom it allows consumers not only are you able to mix and match its services, amazon offers three different methods to manage and utilise aws through the cli, the aws console (gui), or sdks to top it all off, the highly competitive pricing makes aws an offer hard to refuse opening the aws lego toolbox in this section i will display some key amazon web services as well as some others i used in a recent project simple storage service (s3) as the name suggests, aws s3 is a storage service it provides automatic scaling — meaning you don’t have to worry about running out of storage — and it is extremely reliable… like 99 999999999% reliable through the concept of “buckets”, s3 can be used to store log files, photos for your application, and even to serve static websites that don’t require server side technologies elastic cloud computing (ec2) ec2 allows you put virtual servers in the cloud if you don’t know anything about cloud computing, this means that aws is removing the need to purchase actual hardware to have servers just like s3, there is automatic scaling — meaning depending on the demand, the amount of servers can be automatically increased paired together with aws s3 and aws relational database (rds), you are able to create a full back end, front end, and database, all based in the cloud identity and access management (iam) whenever you need to programmatically access aws services you will need to have two different access keys an access key id, and a secret access key however, for the sake of security, you would not want these keys to be able to access all of your account this is where iam can come into play through iam, you can create aws users and groups, use permissions to allow and deny their access to aws resources, and delete users and groups when access is no longer required thus, iam highly improves security and gives you the ability to allow outside accounts to access your account’s specific services lambda in essence, lambda allows you to have a “serverless” application this does not mean you do not have a server at all; instead, it means it removes the need to provision and manage servers (whether they be physical or virtual) explained simply, lambda runs code that you specify, based on a trigger that you also specify these triggers can be http requests with api gateway, changes in a specific s3 bucket, updates in your database, and so on lambda provides infinite flexibility and a highly affordable serverless option for applications api gateway api gateway is a simple service that allows you to build, deploy and manage apis through a matter of a few minutes in the aws console you are able to have a fully functioning restful api to a distinct url endpoint api gateway is able to simultaneously handle all your api calls, while providing traffic management, authorization and access control, and monitoring polly through artificial intelligence, aws polly is able to turn text into lifelike speech it works with dozens of different languages — for example, chinese, russian, turkish, spanish, and korean — with usually several voices for each language connect aws connect provides you the capability to have a simple, cloud based call center through the aws console, you can construct different “contact flows” (where you create distinct user experiences for outbound or inbound calls), manage different calling ‘agents’, and track performance metrics my experience with aws in my most recent project, i combined together connect (with polly built in), lambda, api gateway, and s3 to create a fully functioning robocall system with a basic front end a user is able to access my static website that is hosted through s3, input the phone number they would like to call and the text they would like to change to speech once submitted, a request is sent to api gateway, which then triggers a special lambda function which calls the number that was inputted, with the text that was also inputted in my experience, using aws was extremely simple, and provided a vast range of capabilities even though my account is in the free tier i was able to confidently and easily use all of the aws services without fear i was going to spend any money aws has provided users many different resources to learn all their services, and through a 1 year free trial, you are able to test every single one of their services i would highly recommend anyone to at least try learning in this blog, i only showcased seven amazon web services, however, aws has over 90 different services in over 20 different categories list 1 list 2 list 2 1 list 2 1 1 list 2 2 list 3 check list 1 check list 2 / c# program to check whether the entered year is a leap year or not / using system; using system collections generic; using system linq; using system text; namespace program { class leapyear { static void main(string\[] args) { leapyear obj = new leapyear(); obj readdata(); obj leap(); } int y; public void readdata() { console writeline("enter the year in four digits "); y = convert toint32(console readline()); } public void leap() { if ((y % 4 == 0 && y % 100 != 0) || (y % 400 == 0)) { console writeline("{0} is a leap year", y); } else { console writeline("{0} is not a leap year", y); } console readline(); } } }// we can use channels to synchronize execution // across goroutines here's an example of using a // blocking receive to wait for a goroutine to finish // when waiting for multiple goroutines to finish, // you may prefer to use a \[waitgroup]\(waitgroups) package main import "fmt" import "time" // this is the function we'll run in a goroutine the // `done` channel will be used to notify another // goroutine that this function's work is done func worker(done chan bool) { fmt print("working ") time sleep(time second) fmt println("done") // send a value to notify that we're done done < true } func main() { // start a worker goroutine, giving it the channel to // notify on done = make(chan bool, 1) go worker(done) // block until we receive a notification from the // worker on the channel < done } gegregerg qwe\<?php> \# python3 program to demonstrate \# the use of sample() function \# import random import random \# prints list of random items of \# length 3 from the given list list1 = \[1, 2, 3, 4, 5, 6] print("with list ", random sample(list1, 3)) \# prints list of random items of \# length 4 from the given string string = "geeksforgeeks" print("with string ", random sample(string, 4)) \# prints list of random items of \# length 4 from the given tuple tuple1 = ("ankit", "geeks", "computer", "science", "portal", "scientist", "btech") print("with tuple ", random sample(tuple1, 4)) \# prints list of random items of \# length 3 from the given set set1 = {"a", "b", "c", "d", "e"} print("with set ", random sample(set1, 3)) sequencediagram participant alice participant bob alice >>john hello john, how are you? loop healthcheck john >>john fight against hypochondria end note right of john rational thoughts \<br/>prevail! john >>alice great! john >>bob how about you? bob >>john jolly good! danger by philosophy, the library won't warn you when you modify your past, so you might delete your whole existence year processing you can now process years in batches ) glhf realtime editor with markdown shortcuts docid\ x 04meqilww4ymhoomc80 the end