Table of Contents

Marc Verhaar 2023/02/21 10:26

AWS Certified Solutions Architect

:!: AWS has hundreds of whitepapers available!

For this exam the most important whitepaper it this one!

:!: The default region is US-East-1. This is also the region where new services will be deployed first! Also when creating services like EC2 or S3, these are created within the region that you are in at the moment of creating!

Well-Architected Framework

There are 6 pillars of the well-architected framework:

  1. Operational Excellence: running and monitoring systems to deliver business value, and continually improving processes and procedures.
  2. Performance Efficiency: using IT and computing resources efficiently
  3. Security: protecting information and systems
  4. Cost Optimization: avoiding unnecessary costs
  5. Reliability: ensuring a workload performs its intended function correctly and consistently when it's expected to
  6. Sustainability: minimizing the environmental impacts of running cloud workloads

Availability Zones and Regions

In this section:

  1. AWS Global Infrastructure
  2. Availability Zones
  3. Data Centers
  4. Regions
  5. Edge Locations
  6. The AWS Management Console

At the moment there are 24 regions and 77 availability zones.

A Region is a geographical location which consists of 2 or more Availability Zones(AZs).

An Availability Zone is a data center or multiple data centers located close (100km or less) together, each with redundant power, networking and connectivity.

Edge locations are endpoints for AWS used for caching (CloudFront, Amazon's CDN). More than 215 Edge locations at the moment.

Ownership and Responsibility

Both AWS and the customer have responsibilities using the AWS cloud. These responsibilities are defined in the Shared Responsibility Model:

AWS Responsibilities

AWS is responsible for the Security OF the Cloud:

Customer Responsibilities

The Customer is responsible for the Security IN the Cloud:

:!: Ask yourself if you can manage it in the AWS Management Console:

Compute, Storage, Databases, and Networking

Compute

Storage

Databases

Networking

Identity Access Management (IAM)

:!: IAM does NOT require region selection! It's management is valid for global access.

IAM Functions

IAM allows you to manage users and their level of access to the AWS console:

IAM Root Account

The root account is the email address you used to sign up for AWS. The root account has full administrative access to AWS. For this reason it is important to secure this account using a strong password and:

  1. MFA (Multi Factor Authentication)
  2. Create an admin group for your administrators and assign the appropriate permissions to this group.
  3. Create user accounts for you administrators
  4. Add users to the admin group

Controlling Permissions using IAM

We assign permissions using policy documents which are made up of JSON.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "*",
            "Resource": "*",
        }
    ]
}

The above example is typical for an admin account: allow everything on everything!

Another interesting policy account is that of the PowerUser which grants access to everything except management of Users and Groups:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "NotAction": [
                "iam:*",
                "organizations:*",
                "account:*"
            ],
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "iam:CreateServiceLinkedRole",
                "iam:DeleteServiceLinkedRole",
                "iam:ListRoles",
                "organizations:DescribeOrganization",
                "account:ListRegions"
            ],
            "Resource": "*"
        }
    ]
}

Policy Documents can be assigned to:

  1. Groups
  2. Users
  3. Roles

You would not assign permissions to users as this becomes hard to manage. Instead assign permissions to a group and add the user to the group. The user then inherits the permissions through the group he is assigned to.

Policy Documents can be managed and created from the IAM console. When creating a policy document you have the option to create a JSON file yourself or use a visual editor as provided by AWS.

Policy Documents that are already created, either by AWS or yourself, can be inspected as well.

:!: An explicit deny will always override an allow! Reference Documentation: Policies and Permissions in IAM

IAM Building Blocks

  1. Users: a physical person
  2. Groups: Functions, such as administrators, developers, etc. Contains users
  3. Roles: Internal usage within AWS, allows 1 part of AWS to access another part of AWS (i.e. an S3 bucket that needs to be available to an EC2 instance)

Creating a User

  1. Using the IAM console, create user
  2. Fill in user name
  3. Determine access type:
    1. Programmatic access will create an access key ID and secret access key for the AWS API, CLI, SDK and other development tools. Apparently this no longer exists as an option! After creating the user you now need to generate access keys by hand
    2. AWS Management Console: Enables a password that allows users to sign-in to the AWS Management Console. You also need to choose between auto-generated password or custom password, and if the user must create a new password at the 1st sign-in.
  4. Add user to group (create group if needed)
  5. Add tags if needed, for example:
    1. Department - Admins
    2. Employee_ID - 12345
    3. etc
  6. Review and create user

Password Policy

The default password policy can be found on the IAM page under Account settings. It defaults to:

It is possible to change to a custom policy:

:!: This will only impact new users and existing users changing their passwords

Identity Providers

This provides an option to use SSO (Single Sign On) using:

  1. SAML; your Windows AD (Active Directory) server. You need to create a trust between your AWS account and Active Directory Federation Services or
  2. OpenID Connect

Steps to secure your AWS root account

  1. Enable multi-factor authentication (MFA)on the root account
  2. Create an admin group for you administrators and assign the appropriate permissions to this group
  3. Create user accounts for your administrators (and power users)
  4. Add your users to the admin (and power user) group.

:!: The reason I mention power users here is that they can anything accept IAM. They might be called functional admins.

IAM Exam tips

S3 (Simple Storage Service)

S3 Basics

S3 Characteristics

Object Policies vs ACLs

Object policies are given on the bucket level; all objects in the buckets get the same Object Policy and its permissions

ACLs are given on *individual objects**. Giving an ACL on 1 object in a bucket does not affect the other object in the same bucket.

:!: To make objects publically available, you need to configure both Object Policies and ACL on each object!

S3 Tiers

S3 Exam tips