Skip to content

Feature/s3 bucket - #14

Merged
IsaacTai13 merged 7 commits into
T13Forge:mainfrom
IsaacTai13:feature/s3-bucket
Oct 23, 2025
Merged

Feature/s3 bucket#14
IsaacTai13 merged 7 commits into
T13Forge:mainfrom
IsaacTai13:feature/s3-bucket

Conversation

@IsaacTai13

Copy link
Copy Markdown
Contributor

No description provided.

- add random provider for stable UUID
- with encryption, lifecycle, and access block
- Create custom DB parameter group
- Create DB subnet group from private subnets
- Allow ingress from app_sg on 5432
- Outputs: endpoint and port"
- Write DB connection variables into .env on boot
- Restart webapp service with updated RDS settings
- Created IAM role and instance profile for EC2
- Defined trust policy allowing EC2 to assume the role
- Added least-privilege S3 access policy (List/Get/Put/Delete on
specific bucket)
- Added AWS_REGION and S3_BUCKET variables in user_data.sh
- Passed new vars via templatefile in ec2.tf
- Used random_uuid to keep S3 bucket name stable across applies
- resolve undefined variable issue and add logging to
/var/log/user_data_setup.log in user_data.sh
@IsaacTai13
IsaacTai13 merged commit 8c61cfd into T13Forge:main Oct 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant