Add AWS execrises and questions
Mostly about VPC and Route 53.
This commit is contained in:
26
exercises/aws/solutions/creating_records.md
Normal file
26
exercises/aws/solutions/creating_records.md
Normal file
@@ -0,0 +1,26 @@
|
||||
## AWS Route 53 - Creating Records
|
||||
|
||||
### Requirements
|
||||
|
||||
At least one registered domain
|
||||
|
||||
### Objectives
|
||||
|
||||
1. Create the following record for your domain:
|
||||
1. Record name: foo
|
||||
2. Record type: A
|
||||
3. Set some IP in the value field
|
||||
|
||||
2. Verify from the shell that you are able to use the record you've created to lookup for the IP address by using the domain name
|
||||
|
||||
### Solution
|
||||
|
||||
1. Go to Route 53 service -> Hosted zones
|
||||
2. Click on your domain name
|
||||
3. Click on "Create record"
|
||||
4. Insert "foo" in "Record name"
|
||||
5. Set "Record type" to A
|
||||
6. In "Value" insert "201.7.20.22"
|
||||
7. Click on "Create records"
|
||||
|
||||
1. In your shell, type `nslookup foo.<YOUR DOMAIN>` or `dig foo.<YOUR NAME`
|
17
exercises/aws/solutions/new_vpc.md
Normal file
17
exercises/aws/solutions/new_vpc.md
Normal file
@@ -0,0 +1,17 @@
|
||||
## AWS VPC - My First VPC
|
||||
|
||||
### Objectives
|
||||
|
||||
1. Create a new VPC
|
||||
1. It should have a CIDR that supports using at least 60,000 hosts
|
||||
|
||||
### Solution
|
||||
|
||||
#### Console
|
||||
|
||||
1. Under "Virtual Private Cloud" click on "Your VPCs"
|
||||
2. Click on "Create VPC"
|
||||
3. Insert a name (e.g. someVPC)
|
||||
4. Insert IPv4 CIDR block: 10.0.0.0/16
|
||||
5. Keep "Tenancy" at Default
|
||||
6. Click on "Create VPC"
|
27
exercises/aws/solutions/register_domain.md
Normal file
27
exercises/aws/solutions/register_domain.md
Normal file
@@ -0,0 +1,27 @@
|
||||
## AWS Route 53 - Register Domain
|
||||
|
||||
### Objectives
|
||||
|
||||
Note: registering domain costs money. Don't do this exercise, unless you understand that you are going to register a domain and it's going to cost you money.
|
||||
|
||||
1. Register your own custom domain using AWS Route 53
|
||||
2. What is the type of your domain?
|
||||
3. How many records your domain has?
|
||||
|
||||
### Solution
|
||||
|
||||
1. Go to Route 53 service page
|
||||
2. Click in the menu on "Registered Domains" under "Domains"
|
||||
3. Click on "Register Domain"
|
||||
4. Insert your domain
|
||||
5. Check if it's available. If it is, add it to the cart
|
||||
|
||||
Note: registering domain costs money. Don't click on "continue", unless you understand that you are going to register a domain and it's going to cost you money.
|
||||
|
||||
6. Click on "Continue" and fill in your contact information
|
||||
7. Choose if you want to renew it in the future automatically. Accept the terms and click on "Complete Order"
|
||||
8. Go to hosted zones and you should see there your newly registered domain
|
||||
|
||||
1. The domain type is "Public"
|
||||
|
||||
1. The domain has 2 DNS records: NS and SOA
|
39
exercises/aws/solutions/subnets.md
Normal file
39
exercises/aws/solutions/subnets.md
Normal file
@@ -0,0 +1,39 @@
|
||||
## AWS VPC - Subnets
|
||||
|
||||
### Requirements
|
||||
|
||||
Single newly created VPC
|
||||
|
||||
### Objectives
|
||||
|
||||
1. Create a subnet in your newly created VPC
|
||||
1. CIDR: 10.0.0.0/24
|
||||
2. Name: NewSubnet1
|
||||
2. Create additional subnet
|
||||
1. CIDR: 10.0.1.0/24
|
||||
2. Name: NewSubnet2
|
||||
3. Different AZ compared to previous subnet
|
||||
3. Create additional subnet
|
||||
1. CIDR: 10.0.2.0/24
|
||||
2. Name: NewSubnet3
|
||||
3. Different AZ compared to previous subnets
|
||||
|
||||
### Solution
|
||||
|
||||
#### Console
|
||||
|
||||
1. Click on "Subnets" under "Virtual Private Cloud"
|
||||
2. Make sure you filter by your newly created VPC (to not see the subnets in all other VPCs). You can do this in the left side menu
|
||||
3. Click on "Create subnet"
|
||||
4. Choose your newly created VPC
|
||||
5. Set the subnet name to "NewSubnet1"
|
||||
6. Choose AZ
|
||||
7. Set CIDR to 10.0.0.0/24
|
||||
8. Click on "Add new subnet"
|
||||
9. Set the subnet name to "NewSubnet2"
|
||||
10. Choose a different AZ
|
||||
11. Set CIDR to 10.0.1.0/24
|
||||
12. Click on "Add new subnet"
|
||||
13. Set the subnet name to "NewSubnet3"
|
||||
14. Choose a different AZ
|
||||
15. Set CIDR to 10.0.2.0/24
|
Reference in New Issue
Block a user