This deploys HedgeDoc running on Fargate.
To deploy your infrastructure, follow the below steps.
After cloning this repo, from this working directory, run these commands:
-
Create a new stack, which is an isolated deployment target for this example:
$ pulumi stack init
-
Set the required configuration variables for this program:
$ pulumi config set aws:profile default $ pulumi config set aws:region eu-west-1 $ pulumi config set db_password someDatabasePassword $ pulumi config set session_secret someSessionSecret
-
Set up Fargate service, which will also serve on CloudFront:
$ pulumi up
-
After a couple minutes, your service will be ready, and stack output is printed:
$ pulumi stack output Current stack outputs (1): OUTPUT VALUE hostname ...
-
Thanks to the CloudFront making the service accessible from the internet, we can curl it:
$ curl $(pulumi stack output hostname) ...
To destroy your stack and remove it:
$ pulumi destroy --yes
$ pulumi stack rm --yes