Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clstokes/pulumi-ts-vpc-abstraction
A Pulumi project with a minimal VPC abstraction across AWS, Azure, and GCP.
https://github.com/clstokes/pulumi-ts-vpc-abstraction
pulumi pulumi-aws pulumi-azure pulumi-gcp
Last synced: 17 days ago
JSON representation
A Pulumi project with a minimal VPC abstraction across AWS, Azure, and GCP.
- Host: GitHub
- URL: https://github.com/clstokes/pulumi-ts-vpc-abstraction
- Owner: clstokes
- License: apache-2.0
- Created: 2019-03-25T18:08:16.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-25T19:50:01.000Z (almost 6 years ago)
- Last Synced: 2024-11-08T13:55:35.331Z (2 months ago)
- Topics: pulumi, pulumi-aws, pulumi-azure, pulumi-gcp
- Language: TypeScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ts-vpc-abstraction
Example of a minimal VPC abstraction across AWS, Azure, and GCP.
## Getting Started
1. Open a terminal, `git clone` this repo, and change directory to where `index.ts` resides.
1. Change the import at the top of `index.ts` to change cloud provider.```
import {MyVpc} from "./vpc-aws";
// import {MyVpc} from "./vpc-azure";
// import {MyVpc} from "./vpc-gcp";
```1. Run the appropriate AWS or GCP command below if you chose AWS or GCP as your cloud provider.
```
pulumi config set aws:region
pulumi config set gcp:region
```1. Run `pulumi up`.
```
$ pulumi up
Previewing update (dev):Type Name Plan
+ pulumi:pulumi:Stack ts-vpc-abstraction-dev create
+ ├─ custom:aws:Vpc main create
+ │ └─ aws:ec2:Vpc main create
+ ├─ aws:ec2:Subnet main-1 create
+ └─ aws:ec2:Subnet main-0 createResources:
+ 5 to createDo you want to perform this update? yes
Updating (dev):Type Name Status
+ pulumi:pulumi:Stack ts-vpc-abstraction-dev created
+ ├─ custom:aws:Vpc main created
+ │ └─ aws:ec2:Vpc main created
+ ├─ aws:ec2:Subnet main-0 created
+ └─ aws:ec2:Subnet main-1 createdOutputs:
subnetIds: [
[0]: "subnet-03019da431112da21"
[1]: "subnet-0e128ddf1cd4889a8"
]
vpcId : "vpc-0d7d822c4753ed3de"Resources:
+ 5 createdDuration: 14s
Permalink: https://app.pulumi.com/clstokes/ts-vpc-abstraction/dev/updates/15
```1. Run `pulumi destroy` to clean up resources.