Info Security Memo
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org

Build Confidence

Focusing on Information Security 

Info Security Notes

Building a 3S (Scalable, Stable and Secure) AWS Test Environment - Part 1

12/2/2017

1 Comment

 
Gartner Magic Quadrant for Cloud Infrastructure as a Service, Worldwide June 2017
Gartner's Magic Quadrant
for Cloud Infrastructure as a Service,
Worldwide June 2017. 
According to Gartner, Amazon Web Services (AWS) has became as the undisputed leading cloud provider in the world. AWS is rated “the most mature, enterprise-ready provider, with the deepest capabilities for governing a large number of users and resources.” Gartner says it can satisfy the cool kids who want cloud-native and old hands who want to shift traditional workloads to the cloud, in part because independent software vendors have clambered aboard in large numbers.


AWS has a good documentation Quick Start deployment guide which present a good example to build a VPC environment with the following features:
  • Up to four Availability Zones for high availability and disaster recovery. Availability Zones are geographically distributed within a region and spaced for best insulation and stability in the event of a natural disaster. AWS recommends maximizing your use of Availability Zones to isolate a data center outage. 
  • Separate subnets for unique routing requirements. AWS recommends using public subnets for external-facing resources and private subnets for internal resources. For each Availability Zone, this Quick Start provisions one public subnet and one private subnet by default.
  • Additional layer of security. AWS recommends using network access control lists (ACLs) as firewalls to control inbound and outbound traffic at the subnet level. This Quick Start provides an option to create a network ACL protected subnet in each Availability Zone. These network ACLs provide individual controls that you can customize as a second layer of defense.
  • Independent routing tables configured for every private subnet to control the flow of traffic within and outside the Amazon VPC. The public subnets share a single routing table, because they all use the same Internet gateway as the sole route to communicate with the Internet.
  • Highly available NAT gateways, where supported, instead of NAT instances. NAT gateways offer major advantages in terms of deployment, availability, and maintenance.
  • Spare capacity for additional subnets, to support your environment as it grows or changes over time.


Understand relation between VPC components:

Internet Gateway  --- Router --- Route Table --- Network ACL --- Subnet --- Security Group --- Instance

VPC with Public & Private Subnet(s)




    1. Log into AWS Console



    AWS Console


    AWS Services

    EC2 Console


    2. Building a stable and secure AWS foundation (VPC, AMI)
    2.1. Create your VPC
    Amazon VPC – The Amazon Virtual Private Cloud (Amazon VPC) service lets you provision a private, isolated section of the AWS Cloud where you can launch AWS services and other resources in a virtual network that you define. You have complete control over your virtual networking environment, including selection of an IP address range, creation of subnets, and configuration of route tables and network gateways.
    VPC Console


    VPC Wizard 1

    VPC Wizard 2

    VPC Wizard 3


    Note: With VPC creating wizard, there are many components created for this vpn automatically.




    2.2. Create your Internet Gateway

    By default , Internet Gateway has been created when you created your own VPC by step 2.1 wizard .







    2.3. Create your Subnets


    There will be a subnet automatically created for you by step 2.1 wizard.



    2.4. Create your route table
    There will be two route tables automatically created for you by step 2.1 wizard.



    2.5. Create your IAM (Identiy and Access Management)

    Services-Security , Identity & Compliance

    AWS IAM Console



    IAM Set Permissions

    Add Group with two Permissions - EC2 Full and read only

    AWS IAM User Create review


    Deny access for S3


    Note: the permissions you will get is the maximum one configured in the group. 





    References:


    • Amazon VPC


    Scenario Usage
    Scenario 1: VPC with a Single Public Subnet
    Use the VPC wizard to create a VPC for running a single-tier, public-facing web application such as a blog or simple web site.
    Scenario 2: VPC with Public and Private Subnets (NAT)
    Use the VPC wizard to create a VPC for running a public-facing web application, while still maintaining non-publicly accessible back-end servers in a second subnet.
    Scenario 3: VPC with Public and Private Subnets and Hardware VPN Access
    Use the VPC wizard to create a VPC for extending your data center into the cloud, and also directly access the Internet from your VPC.
    Scenario 4: VPC with a Private Subnet Only and Hardware VPN Access
    Use the VPC wizard to create a VPC for extending your data center into the cloud, and leverage Amazon's infrastructure without exposing your network to the Internet.
    Example: Create an IPv4 VPC and Subnets Using the AWS CLI
    Use the AWS CLI to create a VPC and and a public and private subnet.
    Example: Create an IPv6 VPC and Subnets Using the AWS CLI
    Use the AWS CLI to create a VPC with an associated IPv6 CIDR block, and a public and private subnet each with an associated IPv6 CIDR block.


    1 Comment
    quick links link
    12/12/2017 02:39:37


    Nice knowledge gaining article. This post is really the best on this valuable topic.

    Reply



    Leave a Reply.

      Categories

      All
      Architecture
      Blog
      Checkpoint
      Cisco
      Cloud
      CyberArk
      F5
      Fortigate
      Guardium
      Juniper
      Linux
      Network
      Others
      Palo Alto
      Qualys
      Raspberry Pi
      Security
      SIEM
      Software
      Vmware
      VPN
      Wireless

      Archives

      March 2024
      February 2024
      January 2024
      December 2023
      November 2023
      October 2023
      September 2023
      August 2023
      July 2023
      June 2023
      May 2023
      April 2023
      March 2023
      February 2023
      January 2023
      December 2022
      November 2022
      October 2022
      September 2022
      August 2022
      July 2022
      June 2022
      May 2022
      April 2022
      March 2022
      February 2022
      January 2022
      December 2021
      November 2021
      October 2021
      September 2021
      August 2021
      July 2021
      June 2021
      May 2021
      April 2021
      March 2021
      February 2021
      January 2021
      December 2020
      November 2020
      October 2020
      September 2020
      August 2020
      July 2020
      October 2019
      September 2019
      June 2019
      July 2018
      May 2018
      December 2017
      August 2017
      April 2017
      March 2017
      January 2017
      December 2016
      November 2016
      October 2016
      September 2016
      August 2016
      July 2016
      June 2016
      May 2016
      April 2016
      March 2016
      February 2016
      January 2016
      December 2015
      November 2015
      October 2015
      September 2015
      August 2015
      July 2015
      June 2015
      May 2015
      April 2015
      March 2015

      Print Page:

      RSS Feed

      Email Subscribe
    Powered by Create your own unique website with customizable templates.
    • Blog
    • Sitemap
      • Categories
    • Contact
    • About
    • Resources
    • Tools
    • 51sec.org