A simple dy dns server with REST API.
Note: some values in this example will be different from run to run. These values are indicated
with ***
.
-
Create a new stack:
$ pulumi stack init dev
-
Set configs region:
$ pulumi config set aws:region eu-central-1 $ pulumi config set ddns-lambda:domain ddns.example.com
-
Restore NPM modules via
npm install
oryarn install
. -
Run
pulumi up
to preview and deploy changes:$ pulumi up Previewing update of stack 'dev' ... Updating (dev): ...
-
To view the runtime logs of the Lambda function, use the
pulumi logs
command. To get a log stream, usepulumi logs --follow
.
-
Run
pulumi destroy
to tear down all resources. -
To delete the stack itself, run
pulumi stack rm
. Note that this command deletes all deployment history from the Pulumi Console.