Skip to content

Latest commit

 

History

History
84 lines (53 loc) · 4.66 KB

File metadata and controls

84 lines (53 loc) · 4.66 KB

Course LOBs (Learning objectives)

13-17/11

Practice IAM policies

Create the below policies following the Principle of least privilege.

  1. IAM policy with permissions to start and stop EC2 instance.
  2. IAM policy with permissions read object from S3 buckets except objects starting with "internal/"
  3. IAM policy with permissions to upload objects from STANDARD and STANDARD_IA storage classes only.
  4. IAM policy with permissions to attach EBS to EC2.
  5. IAM policy with permissions to attach EBS to EC2 from us-east-1 region only.
  6. IAM policy with permissions to attach EBS to EC2 from all US and EU regions.
  7. IAM policy which denying users to assign policies to and identity, which means, users under this policy cannot assign IAM policies to other users, groups, roles.

Etag manual computing

Write some Python code that computes the Etag of a given file. Make sure you get the same results as appears in S3 console when uploading this file to a bucket. The algorithm can be found here.

20/11 - 1/12

SSH keys rotation

Write bash scripts that automatically rotates SSH keys for a given host ec2-user@host. The script should work as follows:

  • Generate RSA key pair locally.
  • Connect to the host.
  • Append the public keys of the new generated key-pair into ~/.ssh/authorized_keys file.
  • Close the connection.
  • Connect to the host using the new generated key, and remove the public key of the old key from ~/.ssh/authorized_keys.

Note that the above steps should be automatically executed by the Bash script, not manually.

04-15/12

18-29/12

JWT token

JSON Web Token (JWT) defines a way for securely transmitting information between parties (e.g. two different micro-services) as a JSON object. Further reading

Communicating with your RDS DB using Python code

Inspired by the code under lambda-api/app.py, write some Python script that communicates with you RDS database. You can either write/read/delete some data.

API

Choose some interesting API from the list bellow:

https://github.com/public-apis/public-apis

Communicate with the API using 3 different ways:

  • From your terminal using curl.
  • Using Postman.
  • From Python code that you'll write using requests package.

Visualize CloudWatch data using Grafana

Run the official Grafana Docker image on your local machine. Configure CloudWatch as a data source. Explore the different metrics...

Resources Cleanup!

Please clean your redundant and orphan resources from our shared AWS account: VPCs, NAT Gateways, Load Balancers, RDS Databases.