Last updated on
Jun 12, 2024

What is VPC in AWS – Table of Content

What is Amazon VPC?

Amazon Virtual Private Cloud or Amazon VPC is an AWS service that provides you with a separate area of the cloud. Having this separate area, you can launch your own defined AWS services in a virtual network.

Here, in VPC you have complete control of your virtual environment which includes IP address range, the configuration of route tables, the creation of subnets, and network gateways. Also, the network configurations can be easily customised for the Amazon VPC. 

Like all the other AWS services, Amazon VPC provides top-notch security. It has multiple layers of security which include network access control lists and security groups to manage the Amazon EC2 instances’ access in each subnet.

We have the perfect professional AWS Training course for you. Enroll now!

Now to understand the entire scenario of VPC, even better, let’s have a look at the architecture of VPC.

Architecture of VPC

Architecture of VPC

  • The above picture shows the architecture of VPC, so there’s an outer region and inside that outer region there’s an Internet Gateway and Virtual Private Gateway.
  • Internet Gateway and Virtual Private Gateway are what help in the connection with the VPC. These connections pass through the router which directs the coming traffic to the router table.
  • The two Router Tables then direct the traffic to Network ACL, which is like a firewall for security purposes. 
  • The Network ACLs can either accept or deny the roles. Also, the IP Address can be blocked on the Network ACL. 
  • The respective Network ACL signals to their respective security groups to access lines against the EC2 Instance. 
  • Now, there are two subnets – Public Subnet and Private Subnet. 
    As the name suggests, in the public subnet internet can be accessed by the EC2, while in the private subnet EC2 instance cannot be accessed through the internet. 
  • There’s also a process called “Jump Boxes” which enables you to connect the EC2 Instances (the public subnet can be connected to the private subnet’s instance).

Now, when we know about the architecture of VPC, it’s time to understand the different elements of VPC. 

Top 50+ Frequently Asked AWS Interview Questions !

AWS Training

  • Master Your Craft
  • Lifetime LMS & Faculty Access
  • 24/7 online expert support
  • Real-world & Project Based Learning

Elements of Amazon VPC.

The elements included in the Amazon VPC are:

IPv6 and IPv4 address blocks

VPC IP addresses use CIDR (Classless Interdomain Routing) IPv6 and IPv4 blocks to define their ranges. Primary and secondary CIDR blocks can be added to the VPC if the secondary Classless Interdomain Routing block comes from a similar address range as the primary block.

Subnet Creation

The EC2 Instance that is launched runs inside a specific VPC subnet. And, each subnet’s CIDR as a subset of the VPC Classless Interdomain Routing block. Every subnet separates its respective traffic from all the other VPC subnet traffic. It must be noted that a subnet can only have one CIDR block and different subnets are to be designated to handle diverse traffic types. 

Route Tables

Route Tables are actually the rule book that decides how much network traffic must be directed inside the VPC and subnets. A default route table is created by the VPC called the main route table. And, this main route table has an automatic association with other VPC subnets. 

There are two options – either the main route table can be updated and used to direct network traffic OR a new route table can be created for individual subnet traffic.

Internet Connectivity

Each VPC configuration is able to host one Internet Gateway and hence provide NAT or the Network Address Translation services using a NAT Gateway or NAT instances.

Elastic IP Addresses (EIPs)

Elastic IP Addresses or EIPs are IPv4 addresses permanently allocated to the user’s AWS account. The EIPs enable public internet access to the following:

  • An instance
  • Elastic Network Interface or ENI
  • Miscellaneous services that require a public IP address.
Network/Subnet Security

In the VPC architecture, you had seen there’s something called the “security group,” so VPCs use those security groups to give protection for instances. These security groups are referred to as firewalls by AWS.  

Additional Networking Services

There are several more services provided by a VPC. The VPC can also be used to configure the following: 

  • Virtual Private Networks or VPNs
  • Direct connectivity between VPCs or VPC peering
  • Gateways
  • Mirror sessions

Now, when you are well versed with the basics of Amazon VPC, let’s have a look at what you can do with a VPC.

HKR Trainings Logo

Subscribe to our YouTube channel to get new updates..!

What can you do with a VPC?

  • Instances can be launched in a subnet that you choose. 
  • Custom IP address ranges can be assigned in each subnet
  • Route Tables can be configured between subnets.
  • An internet gateway can be created and attached to your VPC. 
  • You get excellent security over your AWS resources.
  • Security groups can be assigned to individual instances.

Conclusion 
By now you would be well versed with everything you need to begin with Amazon Virtual Cloud. In the beginning, we learnt the basics of Amazon VPC and continued to learn its architecture. While at the architecture of VPC, we saw different parts of it and saw each of them briefly. 

Once you knew all the architectural parts, you saw the elements of VPC and studied them in brief. Finally, after learning about different elements and several other basics of Amazon Virtual Cloud, we saw the applicability of the same.

AWS Training

Weekday / Weekend Batches

 Related Articles:



Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


What is a Mapplet?

A Mapplet is an object that can be reused. It will be created in the Mapplet Designer. It includes a set of transformations and allows us to reuse transformation logic in more than one Mapping. Let us understand Mapplets with an example. Consider you have some fact tables which need a series of dimension keys. We can create a Mapplet with a series of Lookup transformations to find every dimension key. We can use this Mapplet in every fact table Mapping instead of recreating the same search logic in every Mapping. As a reusable transformation, any changes to the Mapplet are inherited from every instance of the Mapplet. A Reusable transformation refers to any rule or transition logic defined on the data that will be transformed from source to destination via Mapping, and it can be provided more than once with various methods and logic. it can be used for other transformations.

Mapplet is applicable to mapped data. The source object and the target object will be defined and stored in the database. A logic to be transformed is defined by offering a Mapplet Input that transmits the data from Mapping to Mapplet. After that, a desired Mapplet output transform transmits the Mapplet data to Mapping. So the Input-Output transformations will evolve into cyclic Mapping, transaction logic and reused data without any impact on the data.

Become a Informatica Certified professional by learning this HKR Informatica Training  !

Why Mapplets?

The Mapplets are created to serve two primary purposes:

Whenever we load new data into a table, some space occurs in the source system, and whenever a new transformation is required to be configured on each Mapping. Mapplets are created to prevent this repetition of the creation of the transformation expressions and to end the unwanted space that is formed in the source system. 
On each workflow that is running in the system, a batch id will be formed according to the timestamp of the session using a Mapplet.

Become a Informatica Certified professional by learning this HKR Informatica Training In Hyderabad  !

Informatica Certification Training

  • Master Your Craft
  • Lifetime LMS & Faculty Access
  • 24/7 online expert support
  • Real-world & Project Based Learning

Informatica Mapplet features: 

  • A Mapplet is used to define key data source definitions as well as a source qualifier for providing the data for Mapping.
  • A Mapplet may not have the source definition of the data. Mapplet may accept this data as well from a mapping process via Mapplet input ports.
  • A Mapplet may have several transformations. 
  • The data may be transformed into several pipelines. A Mapplet may include several groups of output ports/groups which may be connected to one another via various pipelines in the Mapping.


Mapplet Components:

For using a Mapplet in Mapping, we must configure the Mapplet for input and output. Apart from the transformation logic we are configuring, a Mapplet includes the following components:

  • Mapplet ports
  • Mapplet input
  • Mapplet output 
Mapplet Ports:

It will be available only in the Mapping Designer. The Mapplet ports comprise the input ports of the input transformations and the output ports of the output transformations.

Mapplet Input:

The Mapplet input may come from the source definition or from the Input transformation within the Mapplet. Several pipelines can be created in a Mapplet. Utilize several source definitions as well as the input transformations or source qualifiers. Alternatively, you can use a mixture of input transformations and source definitions.

Mapplet Output:

The Mapplet output consists of transformation for passing the data through the Mapplet into the Mapping. At Least one output transformation is included in the Mapplet that includes at least one connected port in the Mapplet. Every port connected in the output transformation displays as a Mapplet output port in the Mapping. Every output transformation in the Mapplet is displayed as the output group in the Mapping. The output group may transmit data to several pipelines within the Mapping.

Want to gain knowledge in Informatica BDM? Then visit here to learn Informatica BDM Training!

HKR Trainings Logo

Subscribe to our YouTube channel to get new updates..!

Creation of a Mapplet in Informatica:

The creation of Mapplets involves three steps.

  • First, we must add, connect and then configure the transformations using a transformation logic.
  • Then we need to save the Mapplet using a unique name.
  • Now we can use this Mapplet in the Mapping.
     

When dealing with the Mapplets, mistakes can be avoided by:

  • One of the best ways to avoid mistakes in Mapplets is to comment on every input as well as output transformation that is made in Mapplets so that they will remind us why we have made them.
  • Avoid making modifications to source data datatype, data accuracy or select ports that are connected in the I/O transformation, from the passive to active Mapplet.
     

Follow the rule and guidelines while adding transformations to the Mapplet:

  • When you are using the sequence generator transformation, you should use the reusable sequence generator transformation.
  • When you are using the stored procedure transformation, you should configure the stored procedure Type as Normal.
  • The PowerMart, 3.5 style LOOKUP functions, cannot be included in a Mapplet.
     

Following are the objects that cannot be included in a Mapplet:

  • COBOL sources
  • Normalizer transformations
  • Other Mapplets
  • Target definitions
  • XML sources
  • XML source qualifier transformations
  • Pre and post-session stored procedures
  • Non-reusable sequence generator transformation
     

While reusable shortcuts and transformations in the Mapplet can be used, for protecting the Mapplet validity, use a copy of the transformation rather. Reusable transformations or shortcuts inherit modifications to their original transformations. This could disable the Mapplet and Mapping, which utilizes the Mapplet.

Top 30 frequently asked Informatica Interview Questions !

Informatica Certification Training

Weekday / Weekend Batches

Conclusion:

In this blog, we have learned about Mapplets, why we use Mapplets, Mapplets features, components of a Mapplet and how to create a Mapplet. We hope you found this information helpful!. For more blogs like this, stay tuned to HKR Trainings. 

Related Articles:



Source link