johnweland / foundry-ecs

Infrastructure for running Foundry VTT within AWS ECS
1 stars 0 forks source link

built out basic ECS deployment #6

Closed johnweland closed 8 months ago

johnweland commented 8 months ago

Summary

Following the Example in the AWS Docs, I've created a deployment that creates the VPC, ECS Cluster, Service and Load Balancer. closes #1.

I've further expanded upon it to utilize EFS for perpetual, shared storage across containers. closes #2

Security Groups were updated to allow http:80 traffic and map it to :30000 within the container. closes #3

Additional Notes

In addition because this is the initial infrastructure commit, I've created Stack level tags and a Resource Group to automatically track assets with those tags.

Additionally Secrets Manager is setup to load sensitive information into the container.

In issue #3 we mentioned :443, However the use of :443 will require SSL Certs and the like and that portion should be handled in another issue at a latter date.

CloudFront will need to be configured to point to the ALB. However, current code works except it forwards to /join and when a game is active it seems to loop on a redirect. This will need to be looked over to determine the issue.

Example Deployment

To test: Pull the branch and set your credentials and deploy to your AWS account. You will need a username, password, and admin_key.

Using AWS SSO and a profile to an account I call sandbox

aws sso login --profile sandbox

CDK Synth

cdk synth

Deploy

--all isn't needed here as we only have one stack, but if this were to be deployed using multiple stacks adding the --all is required

cdk deploy --profile sandbox --all
utarsuno commented 8 months ago

test

test