Elastic Cloud Compute


A Virtual Machine that’s hosted in AWS Data Center

TypeAdvantageUse CasePoints to note
On Demandpay by hour or secondFor Short Term
SpotSpin by defining what’s the maximum we can pay, can be stopped or terminated if the spot price exceeds the definedNon-CriticalUp to 90% Discount
ReservedReserve for 1 or 3 yearsWhen the Duration is fixedup to 72% discount
DedicatedPhysically Dedicated ServerLicense , Compliance

Instance Types

Defines the type of Server - GPU Based, CPU Based, Memory Based

EBS Volumes

Permissions

  • IAM ROLES
    • Best way - select required permissions and create a IAM role and then assign the role to EC2.
    • Policy updates to the roles takes effect immediately.
    • attaching and detaching the policies to the roles wont require restarting the machine.
  • You can also hard code a user credentials inside EC2 and grant permissions to that user.