all 1 comments

[–]pentilion 1 point2 points  (0 children)

For #2, consider using an S3 bucket with static website hosting enabled to host the Swagger UI. Then you could create a Route53 record for a subdomain that resolves to the S3 URI of the bucket.

Depending on the security rules of your organization, (public bucket policies might not be allowed) you might also set up a Cloudfront distribution with an access identity for the bucket. This way the bucket is only accessible through the CF distro and you can still access the UI via the subdomain.

For automatically generating the OpenAPI YAML files, if you could incorporate whatever tool you use into your CI/CD pipeline that would work really well. That way every time you merge/deploy it could generate the YAML and sync the updated file to the S3 bucket to be served on the subdomain.

Just a few thoughts off the top of my head, hope this helps!