Skip to content

Commit

Permalink
feat(example): add example and makefile targets for pulumi up and des…
Browse files Browse the repository at this point in the history
…troy
  • Loading branch information
briancaffey committed Dec 23, 2022
1 parent af5502a commit 5745347
Show file tree
Hide file tree
Showing 11 changed files with 3,164 additions and 6 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Brian Caffey

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
build:
yarn build

up: build
cd examples/ad-hoc/ && pulumi up



ad-hoc-base-preview: build
cd examples/ad-hoc/ && pulumi preview


ad-hoc-base-destroy: build
cd examples/ad-hoc/ && pulumi destroy
2 changes: 2 additions & 0 deletions examples/ad-hoc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/bin/
/node_modules/
3 changes: 3 additions & 0 deletions examples/ad-hoc/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: ad-hoc
runtime: nodejs
description: A minimal AWS TypeScript Pulumi program
9 changes: 9 additions & 0 deletions examples/ad-hoc/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as pulumi from "@pulumi/pulumi";
import { AdHocBaseEnvComponent } from '../../';

// Create an AWS resource (S3 Bucket)
const adHocBaseEnv = new AdHocBaseEnvComponent('myAdHocEnv', {
})

// certificateArn: process.env.CERTIFICATE_ARN || 'arn:aws:acm:region:account:certificate/certificate_ID',
// domainName: process.env.DOMAIN_NAME || 'example.com'
Loading

0 comments on commit 5745347

Please sign in to comment.