Scaffolding for lab 5, add infracost
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s

This commit is contained in:
2025-07-11 13:24:59 -07:00
parent 1ae1d8397d
commit b89092cc07
7 changed files with 34 additions and 0 deletions

BIN
.infracost/pricing.gob Executable file

Binary file not shown.

View File

@ -0,0 +1 @@
{"Path":"terraform","Version":"2.0","Modules":[]}

25
lab-5/README.md Normal file
View 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
View File

@ -0,0 +1 @@
resource "aws_vpc" "lab5_vpc"

View File

@ -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

Binary file not shown.

View File

@ -0,0 +1 @@
{"Path":".","Version":"2.0","Modules":[]}