Compare commits
1 Commits
1ae1d8397d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| b89092cc07 |
BIN
.infracost/pricing.gob
Executable file
BIN
.infracost/pricing.gob
Executable file
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
{"Path":"terraform","Version":"2.0","Modules":[]}
|
||||||
25
lab-5/README.md
Normal file
25
lab-5/README.md
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# Lab 5
|
||||||
|
|
||||||
|
Build an RDS Database (MySQL) within VPC
|
||||||
|
|
||||||
|
## Tasks
|
||||||
|
|
||||||
|
- [ ] Using Terraform, provision a private RDS MySQL 8.0 instance in the same VPC.
|
||||||
|
Restrict access so only your EC2 (from Month 1) can connect on port 3306.
|
||||||
|
|
||||||
|
## Map
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
```
|
||||||
|
|
||||||
|
## Resources
|
||||||
|
|
||||||
|
- https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc
|
||||||
|
- https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html
|
||||||
|
- [An Introduction to Networking Terminology, Interfaces, and Protocols](https://www.digitalocean.com/community/tutorials/an-introduction-to-networking-terminology-interfaces-and-protocols)
|
||||||
|
- [Understanding IP Addresses, Subnets, and CIDR Notation for Networking](https://www.digitalocean.com/community/tutorials/understanding-ip-addresses-subnets-and-cidr-notation-for-networking)
|
||||||
|
|
||||||
|
## Terms
|
||||||
|
|
||||||
|
- **CIDR blocks**:
|
||||||
|
- **IPv4 and IPv6**:
|
||||||
1
lab-5/main.tf
Normal file
1
lab-5/main.tf
Normal file
@ -0,0 +1 @@
|
|||||||
|
resource "aws_vpc" "lab5_vpc"
|
||||||
@ -2,6 +2,7 @@
|
|||||||
aws-cli = 'latest'
|
aws-cli = 'latest'
|
||||||
pandoc = 'latest'
|
pandoc = 'latest'
|
||||||
terraform = 'latest'
|
terraform = 'latest'
|
||||||
|
infracost = 'latest'
|
||||||
|
|
||||||
# Also required:
|
# Also required:
|
||||||
# - bitwarden CLI
|
# - bitwarden CLI
|
||||||
@ -30,3 +31,8 @@ aws ec2 stop-instances --instance-ids $TF_VAR_EC2_INSTANCE_ID --region us-east-2
|
|||||||
run = """
|
run = """
|
||||||
aws ec2 start-instances --instance-ids $TF_VAR_EC2_INSTANCE_ID --region us-east-2
|
aws ec2 start-instances --instance-ids $TF_VAR_EC2_INSTANCE_ID --region us-east-2
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
[tasks.costs]
|
||||||
|
run = """
|
||||||
|
infracost breakdown --path .
|
||||||
|
"""
|
||||||
|
|||||||
BIN
terraform/.infracost/pricing.gob
Executable file
BIN
terraform/.infracost/pricing.gob
Executable file
Binary file not shown.
1
terraform/.infracost/terraform_modules/manifest.json
Normal file
1
terraform/.infracost/terraform_modules/manifest.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"Path":".","Version":"2.0","Modules":[]}
|
||||||
Reference in New Issue
Block a user