Skip to content

Latest commit

 

History

History
172 lines (139 loc) · 7.47 KB

aws.md

File metadata and controls

172 lines (139 loc) · 7.47 KB

AWS

EC2

  • The bread and butter of AWS
  • Default into public subnet
  • You can run a command across all instances if you have their agent installed
  • UserData config allows you to provide some instance config or provisioning, which is run under sudo
    • /var/lib/cloud/instance/scripts/part-001
    • ls /var/log/cloud-init-output.log

Security Groups

Elastic Beanstalk

  • Think of a Heroku setup, with server setup abstracted away
  • Has a cli tool just like Heroku
  • You choose your platform, eg PHP. python, node.js etc and go from there
  • Orchestrates setting up EC2 instances with load balancing etc
  • Sets everything up using dynamic on-the-flow CloudFormation templates

Links

VPC

  • Plan out your subnets or plan to fail!
  • Is software defined networking

Links

Subnets

  • A VPC has multiple subnets

Route Tables

  • Routes you associate with your subnet

NACLS

S3

CloudWatch

Route 53

  • DNS management
  • Can configure health checks to request a specific domain or ip
  • Allows you to create complex routing configurations with traffic policies etc

CloudFormation

Infrastructure as code! You can create yaml|json defintions of your infrastructure stack which creates your stack.

Links

IAM

Groups

Users

  • Can have api only access or console access or both
  • Can belong to one or many groups
  • Can be assigned specific policies vs policies inherited from group membership

Policy

  • Dictates what you can or can't do
  • Inline policies are for one-off special snowflakes and should be avoided generally

Roles

  • You can assign a role to a service, eg an EC2 instance can have a role of PublicWebServer which has its own policies
  • Think of a role as an identity, not a group
  • Leverage for cross account access

KMS

Storing encryption keys in the cloud

AWS Config

CloudTrail

Think of it as the auditd of linux but for AWS

CodeCommit

Security

Other

  • Use Resource GRoups to get a birds eye view of everything, across AZs

AWS Certificate Mananger