Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/displague/pulumi-linode-webserver-ts
Starting point for building a Pulumi sample webserver on Linode.
https://github.com/displague/pulumi-linode-webserver-ts
example-project linode pulumi typescript
Last synced: 25 days ago
JSON representation
Starting point for building a Pulumi sample webserver on Linode.
- Host: GitHub
- URL: https://github.com/displague/pulumi-linode-webserver-ts
- Owner: displague
- Created: 2019-05-06T03:00:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-06T03:00:38.000Z (over 5 years ago)
- Last Synced: 2024-12-13T06:35:27.169Z (27 days ago)
- Topics: example-project, linode, pulumi, typescript
- Language: TypeScript
- Homepage: https://github.com/pulumi/examples/tree/master/linode-js-webserver
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)
# Pulumi web server (Linode)
Starting point for building a Pulumi sample webserver on Linode.
## Running the App
1. Create a new stack:
```
$ pulumi stack init webserver-linode-testing
```1. Configure the project:
```
$ pulumi config set --secret linode:token YOURLINODETOKEN
```1. Restore NPM dependencies:
```
$ npm install
```1. Run `pulumi up` to preview and deploy changes:
```
$ pulumi up
Previewing update (webserver-linode-testing):
...Updating (webserver-linode-testing):
Type Name Status
+ pulumi:pulumi:Stack webserver-linode-webserver-linode-testing created
+ ├─ linode:index:StackScript simple-server created
+ └─ linode:index:Instance instance createdOutputs:
instanceIP : "69.164.221.90"
instanceLabel: "linode13879908"Resources:
+ 3 createdDuration: 55s
```1. Curl the HTTP server:
```
$ curl $(pulumi stack output instanceIP)
Hello, World!
```1. SSH into the server:
```
$ linode-cli ssh root@$(pulumi stack output instanceLabel)
Warning: Permanently added '69.164.221.90' (ECDSA) to the list of known hosts.
Linux li136-90 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1 (2019-04-12) x86_64The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@li136-90:~#
```1. Cleanup
```
$ pulumi destroy
$ pulumi stack rm
```