unity-sds / unity-project-management

Container repo for project management (projects, epics, etc)
Apache License 2.0
0 stars 1 forks source link

Ensure CloudFront Distributions Have a Default Root Object Configured-Unity #174

Closed mike-gangl closed 3 weeks ago

mike-gangl commented 1 month ago

Based on https://jaas.gsfc.nasa.gov/servicedesk/customer/portal/2/GSD-3294

Each cloudfront distribution should have a default object, that is, if we point a browser at the cloudfront url, it should default to a specific object.

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DefaultRootObject.html#DefaultRootObjectHowToDefine

Status Venue Region Dist Update
Complete Unity-Prod us-east-1 E2AJQJXWBMCC6Y 2024-05-03T15:44:28.831Z
Deleted Unity-Dev us-east-1 E1L6URST2BDIDK 2024-05-03T09:26:52.992Z
Deleted Unity-Dev us-east-1 E3DM9ZY41MO24C 2024-05-03T09:26:52.992Z
Complete Unity-Dev us-east-1 E1GSUPSP26PBVN 2024-05-14T09:26:52.992Z
Complete Unity-Dev us-east-1 E2RZ2XRAPEJB29 2024-05-03T03:26:56.146Z
Deleted Unity-Sips-Test us-east-1 E1EZAOQ4UACXZL 2024-05-03T04:49:42.285Z
Pending Unity-CM us-east-1 E2OGH3FTWKYYMM 2024-05-03T03:22:26.830Z
Complete Unity-Test us-east-1 E38YFCKLV0OVEK 2024-05-03T01:19:39.383Z
Deleted Unity-Test us-east-1 EX1EKVK33463U 2024-05-03T01:19:39.383Z
Deleted Unity-Venue-Dev us-east-1 E1QR6HMZ3BNNKD 2024-05-03T01:00:49.309Z
mike-gangl commented 1 month ago

in unity-dev API Gateway, I've configured a 'mock' endpoint called "info." This takes a integration request

there is an integration request mapping template for application/json

{"statusCode": 200}

and a integration response mapping template:

application/json

{
    "statusCode": 200,
    "message": "Unity development environment API"
}
mike-gangl commented 1 month ago

Hosted website (portal) (e.g. www.dev.mdps.mcp.nasa.gov) has a default root of "index.html"

mike-gangl commented 1 month ago

/info endpoints have been added to the dev, test, and prod API Gateways.

mike-gangl commented 1 month ago

EX1EKVK33463U in unity-test was deleted as no managment console should be deployed in that environment.

mike-gangl commented 1 month ago

Only remaining issue is the unity-cs cloudfront distribution. We could get around this by simply setting a default endpoint; may or may not matter if it exists or not.

mike-gangl commented 1 month ago

i've spent about 2 hours total on this particular ticket, for time tracking purposes.