Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI stack for front-end deployment #388

Closed
chriswilty opened this issue Oct 10, 2023 · 2 comments · Fixed by #819
Closed

UI stack for front-end deployment #388

chriswilty opened this issue Oct 10, 2023 · 2 comments · Fixed by #819
Assignees
Labels
infra/devops Related to infrastructure or project config

Comments

@chriswilty
Copy link
Member

Use Typescript-CDK to define a standard S3 bucket / cloudfront / cognito deployment.

CDK example on Project Overwatch:
https://github.com/ScottLogic/project-overwatch/blob/main/cloud/lib/ui-stack.ts

Notes

  • Fargate/ECS stack for back-end deployment #385 must be completed first!
  • Start with a cloudfront domain, but without Route53.
  • Cognito userpool linked to an Azure AD sandbox: might already have been done as part of Fargate/ECS stack for back-end deployment #385, otherwise see Project Overwatch example, linked above.
  • At this stage, manually deploy bundled UI to the bucket, using AWS CLI.
  • Remember to empty the bucket and destroy the stack after testing! Do not leave it up until we are certain it is secure.
  • Document the process of setting up Azure sandbox in cloud README - see Overwatch repo for guide.

Questions

  • Auto-authenticate on app load, or a login button? Or start with the latter then progress?

Out of Scope

  • Pipeline deployment of all stacks will be covered in a subsequent issue.

Acceptance Criteria
CDK code for (manually) deploying UI stack.
Stack deployed using CDK CLI, UI deployed to bucket using AWS CLI, deployment and connection with back-end verified, then bucket emptied and stack destroyed using CDK CLI.

@chriswilty chriswilty added the infra/devops Related to infrastructure or project config label Oct 10, 2023
@chriswilty chriswilty added this to the Remote deployment milestone Oct 10, 2023
@chriswilty chriswilty self-assigned this Jan 3, 2024
@chriswilty
Copy link
Member Author

chriswilty commented Jan 31, 2024

Progress to date

I have successfully deployed the UI fronted by Cloudfront, but without any authentication. This part can be merged into a (long-lived) feature branch, and then work will continue in these issues:

@chriswilty
Copy link
Member Author

Stack deployment verified, and app successfully tested:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra/devops Related to infrastructure or project config
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant