AWS S3 Simple Storage Service 

What is S3 (Simple Storage Service)?

Amazon S3 (Simple Storage Service) is a scalable, high-speed, low-cost web-based service designed for online backup and archiving of data and application programs.
It allows to upload, store, and download any type of files up to 5 TB in size.



This means customers of all sizes and industries can use it to store and protect any amount of data for a range of use cases, such as websites, mobile applications, backup and restore, archive, enterprise applications, IoT devices, and big data analytics. 




Amazon S3 provides easy-to-use management features so you can organize your data and configure finely-tuned access controls to meet your specific business, organizational, and compliance requirements.
Amazon S3 is designed for 99.999999999% (11 9's) of durability, and stores data for millions of applications for companies all around the world.




How S3 works?



Amazon S3 Features


Low cost and Easy to Use − Using Amazon S3, the user can store a large amount of data at very low charges.

Secure − Amazon S3 supports data transfer over SSL and the data gets encrypted automatically once it is uploaded. The user has complete control over their data by configuring bucket policies using AWS IAM.

Scalable − Using Amazon S3, there need not be any worry about storage concerns. We can store as much data as we have and access it anytime.




Higher performance − Amazon S3 is integrated with Amazon CloudFront, that distributes content to the end users with low latency and provides high data transfer speeds without any minimum usage commitments.

Integrated with AWS services − Amazon S3 integrated with AWS services include Amazon CloudFront, Amazon CloudWatch, Amazon Kinesis, Amazon RDS, Amazon Route 53, Amazon VPC, AWS Lambda, Amazon EBS, Amazon Dynamo DB, etc.














IAM (Identity and Access Management) in AWS


What is IAM?


AWS Identity and Access Management (IAM) enables you to manage access to AWS services and resources securely. 

Using IAM, you can create and manage AWS users and groups, and use permissions to allow and deny their access to AWS resources.

IAM is a feature of your AWS account offered at no additional charge.



When you first create an AWS account, you need a single sign-in identity to access all AWS services. This identity is called the AWS account root user. You can access it by signing in with the email ID and password that you used to create the account. 

AWS IAM helps in performing the following tasks:

It is used to set users, permissions and roles. It allows you to grant access to the different parts of the AWS platform 

Also, it enables Amazon Web Services customers to manage users and user permissions in AWS 

With IAM, Organizations can centrally manage users, security credentials such as access keys, and permissions

IAM enables the organization to create multiple users, each with its own security credentials, controlled and billed to a single AWS account

IAM allows the user to do only what they need to do as a part of the user’s job




Benefit of IAM in AWS?


Shared access to your AWS account: You can grant other people permission to administer and use resources in your AWS account without having to share your password or access key.

Granular permissions: You can grant different permissions to different people for different resources.

Secure access to AWS resources: You can use IAM features to securely provide credentials for applications that run on EC2 instances. These credentials provide permissions for your application to access other AWS resources.




Multi-factor authentication (MFA): You can add two-factor authentication to your account and to individual users for extra security.

Identity federation: You can allow users who already have passwords elsewhere

Identity information for assurance: You receive log records that include information about those who made requests for resources which is based on IAM identities.

PCI DSS Compliance: IAM supports the processing, storage, and transmission of credit card data by a merchant or service provider, and has been validated as being compliant with Payment Card Industry (PCI) Data Security Standard (DSS).

Integrated with many AWS services: There are a number of AWS services that work with IAM.

Eventually Consistent: IAM achieves high availability by replicating data across multiple servers within Amazon’s data centers around the world. The change is committed and safely stored when you request for some modification.

Free to use: When you access other AWS services using your IAM users or AWS STS temporary security credentials, only then you will be charged.

IAM Components

Users – Create individual users.

Groups – Manage permissions with groups.

Permissions – Grant least privilege.


Auditing – Turn on AWS CloudTrail.

Password – Configure a strong password policy.

MFA – Enable MFA for privileged users.

Roles – Use IAM roles for Amazon EC2 instances.

Sharing – Use IAM roles to share access.

Rotate – Rotate security credentials regularly.

Conditions – Restrict privileged access further with conditions.

Root – Reduce or remove use of root.










Automatic Server open in Safe mode


In this article we will see that sometimes, a domain controller can be stuck in a boot loop where it will only start in recovery mode after you have reverted to a previous configuration from a snapshot



To fix this, you will have to:

1) log in with a local admin account

2) run the following commands: cd \ cd windows\system32\recovery

bcdedit.exe /deletevalue safeboot
shutdown /r /t 0

You will then be able to log in with your domain account and the server will no longer boot in recovery mode.

On-Premise, IaaS, PaaS, SaaS 

In this article we will see about what is on-premise, IaaS, PaaS, SaaS of Cloud services.



On-premise: Infrastructure and software that's installed in the same building as your business

IaaS - Infrastructure as a Service (IaaS): cloud-based services, pay-as-you-go for services such as storage, networking, and virtualization.

PaaS - Platform as a Service (PaaS): hardware and software tools available over the internet.

SaaS - Software as a Service (SaaS) : software that's available via a third-party over the internet.






Example :- 



Find out Even and Odd number from different different types in python

In this article we will see that how to find out even and odd number from different different types in python, let us know if any issue you face and comment.



First step : Retrieving elements from the list




Second step : In for loop by using Range function








Third step : Putting user input to calculate Even and Odd number



Python Program to Create a Basic Calculator 


In this article, we will write a python program to create a basic calculator using class, objects, and other methods. 

To better understand this example, make sure you have knowledge of the following tutorials:-




Python Class and Objects
Python Constructor
Python Functions
Python Operators



1. A Basic Calculator after using Python:


def cal():
    x = ('1. Add \n2. Sub \n3. Multiply \n4. Divide')
    print(x)
cal()

cal1 = input('Enter your choice: ')

num1 = int(input('Enter First number: '))
num2 = int(input('Enter Second number: '))

if cal1 == '1':
    x1 = num1 + num2
    print('Total number: ' + str(x1))
elif cal1 == '2':
    x2 = num1 - num2
    print('Total number: ' + str(x2))
elif cal1 == '3':
    x3 = num1 * num2
    print('Total number: ' + str(x3))
elif cal1 == '4':
    x4 = num1 / num2
    print('Total number: ' + str(x4))
else:
    print("Invalid input")   


2. A Basic Calculator after using Python Function:


def add(x, y):
    return x + y
def sub(x, y):
    return x - y
def multiply(x, y):
    return x * y
def divide(x, y):
    return x / y
def menu():
    opt = '1. Add \n2. Sub \n3. Multiply \n4. Divide'
    print(opt)
menu()

choice = int(input('Please select one of the following : '))

num1 = int(input('Enter your First name : '))
num2 = int(input('Enter your Second name : '))




while True:
    if choice == 1:
        print('Result : ', add(num1, num2))
        break
    elif choice == 2:
        print('Result: ', sub(num1, num2))
        break
    elif choice == 3:
        x3 = num1 * num2
        print('Result: ', multiply(num1, num2))
        break
    elif choice == 4:
        print('Result: ', divide(num1, num2))
        break
    else:
        print('Invaild option')
        break
print()






3. A Basic Calculator after using Python Class and Objects:


class cal():
    def __init__(self,a,b):
        self.a = a
        self.b = b
    def add(self):
        return self.a + self.b
    def sub(self):
        return self.a - self.b
    def multiply(self):
        return self.a * self.b
    def divide(self):
        return self.a / self.b

a = int(input('Enter First number : '))
b = int(input('Enter Second number : '))        
obj=cal(a,b)
while True:
    def menu():
        x = ('1. Add \n2. Sub \n3. Multiply \n4. Divide') 
        print(x)
    menu()
    choice = int(input('Please select one of the following : ')) 
    if choice == 1:
        print("Result: ",obj.add())
    elif choice == 2:
        print("Result: ",obj.sub())
    elif choice == 3:
        print("Result: ",obj.multiply())    
    elif choice == 4:
        print("Result: ",obj.divide())
    elif choice == 0:
        print('Again try one of the following')
        break
    else:
        print('Invalid option') 
        break       
print()