Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Dive in IAM

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

Dive in IAM

Avatar for Krunal Kapadiya

Krunal Kapadiya

August 29, 2021
Tweet

More Decks by Krunal Kapadiya

Other Decks in Technology

Transcript

  1. Agenda IAM - Examples of IAM Hierarchy - Who can

    use what resources - 4 Types of Principles - 3 Types of IAM Roles - Service Accounts Compute Engine - Virtual Machines - VPC - Benefits of VPC in GCloud - Compute Engine - DNS, Load Balancing and CDN
  2. IAM

  3. Examples of IAM Hierarchy - A policy is set on

    resource. - Each policy contains set of roles - And role members - Resources inherit policies from parent - Resource policies are union of parent and resources - A less restrictive parent policy overrides more restrictive resource policy
  4. Service Accounts control server-to-server interaction • Provides an identity for

    carrying out server-to-server interaction in a project • Used to authenticate from one service to another • Used to control privileges used by resources ◦ So that application can perform actions on behalf of authenticated end users • Identified with and email address: [email protected] [email protected]
  5. Service Account • Service accounts authenticate using keys. ◦ Compute

    manages keys for Compute Engine and App Engine • You can assign a curated or custom IAM role to the service account • You can also assign ServiceAccountActor role to user and groups.
  6. Service Account IAM • VMs running component_1 are granted Editor

    access to project_b using Service Account 1 • VMs running component_2 are graned objectViewer access to bucket_1 using Service Account 2 • Service account permissions can be changed without recreating VMs
  7. Compute Engine Compute engine offers managed virtual machines • High

    CPU, high memory, standard and shared-core machine types • Persistance disks ◦ Standard SSD, local SSD ◦ Snapshots • Resize disks with no downtime • Instance metadata and startup scripts
  8. Compute Engine Pricing Compute Engine offers innovative pricing • Per-second

    billing, sustained use accounts • Preemptible instances • High throughput to storage at no extra cost • Custom machine types: Only pay for the hardware you need
  9. VPC VPC Network offers many interconnecting features • Fine-grained networking

    policies • Fine-grained IP address range selection • Routes • Firewalls • Virtual Private Network (VPN) • Cloud Routers
  10. DNS Cloud DNS is highly available and scalable • Create

    managed zones, then add, edit, delete DNS records ◦ Programmatically manage zones and records using RESTful API or command-line interface
  11. Load Balancing Cloud Load Balancing: HTTP(S) • Balance HTTP-based traffic

    across multiple Compute Engine regions • Global external IP address routes traffic • Traffic is directed only to instances that pass health checks • Scalable, requires no pre-warming and provides resilience, fault tolerance
  12. Load Balancing Cloud Load Balancing: TCP/SSL, UDP • Spread TCP/SSL

    and UDP traffic over pool of instances within a Compute Engine region • Traffic is directed only to instances that pass health checks • Scalable, requires no pre-warming
  13. CDN (Content Delivery Network) • Use Google’s globally distributed edge

    catches to HTTP(S) load-balanced content far closer to your users then your instances ◦ Faster delivery of content to users while reducing costs • Cloud CDN uses caches at network location to store responses generated by instances