Skip to content

Commit

Permalink
Add yaml templates
Browse files Browse the repository at this point in the history
  • Loading branch information
iwahbe committed May 3, 2022
1 parent 29d9987 commit 8296a16
Show file tree
Hide file tree
Showing 33 changed files with 549 additions and 0 deletions.
18 changes: 18 additions & 0 deletions alicloud-yaml/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: ${PROJECT}
description: ${DESCRIPTION}
runtime: yaml
template:
description: A minimal AliCloud Pulumi YAML program
config:
alicloud:region:
description: The AliCloud region to deploy into
default: cn-beijing

resources:
# Create an AliCloud resource (OSS Bucket)
bucket:
type: alicloud:oss:Bucket

outputs:
# Export the name of the bucket
bucketName: ${bucket.id}
9 changes: 9 additions & 0 deletions alicloud-yaml/Pulumi.yaml.append
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

resources:
# Create an AliCloud resource (OSS Bucket)
bucket:
type: alicloud:oss:Bucket

outputs:
# Export the name of the bucket
bucketName: ${bucket.id}
32 changes: 32 additions & 0 deletions auth0-yaml/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: ${PROJECT}
description: ${DESCRIPTION}
runtime: yaml
template:
description: A minimal Auth0 Pulumi YAML program
config:
auth0:clientId:
description: The Auth0 client ID
secret: true
auth0:clientSecret:
description: The Auth0 client secret
secret: true
auth0:domain:
description: The Auth0 domain

resources:
client:
type: auth0:Client
properties:
allowedLogoutUrls:
- "https://www.example.com/logout"
allowedOrigins:
- "https://www.example.com"
callbacks:
- "https://example.com/auth/callback"
appType: "regular_web"
jwtConfiguration:
alg: "RS256"

outputs:
clientId: ${client.clientId}
clientSecret: ${client.clientSecret}
18 changes: 18 additions & 0 deletions auth0-yaml/Pulumi.yaml.append
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

resources:
client:
type: auth0:Client
properties:
allowedLogoutUrls:
- "https://www.example.com/logout"
allowedOrigins:
- "https://www.example.com"
callbacks:
- "https://example.com/auth/callback"
appType: "regular_web"
jwtConfiguration:
alg: "RS256"

outputs:
clientId: ${client.clientId}
clientSecret: ${client.clientSecret}
18 changes: 18 additions & 0 deletions aws-native-yaml/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: ${PROJECT}
description: ${DESCRIPTION}
runtime: yaml
template:
description: A minimal AWS Pulumi YAML program
config:
aws-native:region:
description: The AWS region to deploy into
default: us-east-1

resources:
# Create an AWS resource (S3 Bucket)
bucket:
type: aws-native:s3:Bucket

outputs:
# Export the name of the bucket
bucketName: ${bucket.id}
9 changes: 9 additions & 0 deletions aws-native-yaml/Pulumi.yaml.append
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

resources:
# Create an AWS resource (S3 Bucket)
bucket:
type: aws-native:s3:Bucket

outputs:
# Export the name of the bucket
bucketName: ${bucket.id}
Binary file added aws-yaml/.DS_Store
Binary file not shown.
19 changes: 19 additions & 0 deletions aws-yaml/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: ${PROJECT}
description: ${DESCRIPTION}
runtime: yaml
template:
description: A minimal AWS Pulumi YAML program
important: true
config:
aws:region:
description: The AWS region to deploy into
default: us-east-1

resources:
# Create an AWS resource (S3 Bucket)
bucket:
type: aws:s3:Bucket

outputs:
# Export the name of the bucket
bucketName: ${bucket.id}
9 changes: 9 additions & 0 deletions aws-yaml/Pulumi.yaml.append
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

resources:
# Create an AWS resource (S3 Bucket)
bucket:
type: aws:s3:Bucket

outputs:
# Export the name of the bucket
bucketName: ${bucket.id}
25 changes: 25 additions & 0 deletions azure-classic-yaml/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: ${PROJECT}
description: ${DESCRIPTION}
runtime: yaml
template:
description: A minimal Pulumi YAML program with the classic Azure provider
config:
azure:location:
description: The Azure location to use
default: WestUS

resources:
# Create an Azure Resource Group
resourceGroup:
type: azure:core:ResourceGroup
# Create an Azure resource (Storage Account)
account:
type: azure:storage:Account
properties:
resourceGroupName: ${resourceGroup.name}
accountTier: Standard
accountReplicationType: LRS

outputs:
# Export the connection string for the storage account
connectionString: ${account.primaryConnectionString}
16 changes: 16 additions & 0 deletions azure-classic-yaml/Pulumi.yaml.append
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

resources:
# Create an Azure Resource Group
resourceGroup:
type: azure:core:ResourceGroup
# Create an Azure resource (Storage Account)
account:
type: azure:storage:Account
properties:
resourceGroupName: ${resourceGroup.name}
accountTier: Standard
accountReplicationType: LRS

outputs:
# Export the connection string for the storage account
connectionString: ${account.primaryConnectionString}
35 changes: 35 additions & 0 deletions azure-yaml/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: ${PROJECT}
description: ${DESCRIPTION}
runtime: yaml
template:
description: A minimal Azure Native Pulumi YAML program
important: true
config:
azure-native:location:
description: The Azure location to use
default: WestUS

resources:
# Create an Azure Resource Group
resourceGroup:
type: azure-native:resources:ResourceGroup
# Create an Azure resource (Storage Account)
storageAccount:
type: azure-native:storage:StorageAccount
properties:
resourceGroupName: ${resourceGroup.name}
sku:
name: Standard_LRS
kind: StorageV2

variables:
storageAccountKeys:
Fn::Invoke:
Function: azure-native:storage:listStorageAccountKeys
Arguments:
resourceGroupName: ${resourceGroup.name}
accountName: ${storageAccount.name}

outputs:
# Export the primary key of the Storage Account
primaryStorageKey: ${storageAccountKeys.keys[0].value}
25 changes: 25 additions & 0 deletions azure-yaml/Pulumi.yaml.append
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

resources:
# Create an Azure Resource Group
resourceGroup:
type: azure-native:resources:ResourceGroup
# Create an Azure resource (Storage Account)
storageAccount:
type: azure-native:storage:StorageAccount
properties:
resourceGroupName: ${resourceGroup.name}
sku:
name: Standard_LRS
kind: StorageV2

variables:
storageAccountKeys:
Fn::Invoke:
Function: azure-native:storage:listStorageAccountKeys
Arguments:
resourceGroupName: ${resourceGroup.name}
accountName: ${storageAccount.name}

outputs:
# Export the primary key of the Storage Account
primaryStorageKey: ${storageAccountKeys.keys[0].value}
28 changes: 28 additions & 0 deletions civo-yaml/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: ${PROJECT}
description: ${DESCRIPTION}
runtime: yaml
template:
description: A minimal Civo Pulumi YAML program
config:
civo:token:
description: The token that allows you access your CIVO account
secret: true

resources:
firewall:
type: civo:Firewall
properties:
name: myFirstFirewall
region: LON1
createDefaultRules: true
cluster:
type: civo:KubernetesCluster
properties:
name: myFirstCivoCluster
numTargetNodes: 3
targetNodesSize: g3.k3s.medium
region: LON1
firewallId: ${firewall.id}

outputs:
clusterName: ${cluster.name}
19 changes: 19 additions & 0 deletions civo-yaml/Pulumi.yaml.append
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

resources:
firewall:
type: civo:Firewall
properties:
name: myFirstFirewall
region: LON1
createDefaultRules: true
cluster:
type: civo:KubernetesCluster
properties:
name: myFirstCivoCluster
numTargetNodes: 3
targetNodesSize: g3.k3s.medium
region: LON1
firewallId: ${firewall.id}

outputs:
clusterName: ${cluster.name}
16 changes: 16 additions & 0 deletions digitalocean-yaml/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: ${PROJECT}
description: ${DESCRIPTION}
runtime: yaml
template:
description: A minimal DigitalOcean Pulumi YAML program

resources:
# Create a DigitalOcean resource (Domain)
domain:
type: digitalocean:Domain
properties:
name: my-domain.io

outputs:
# Export the name of the domain
domainName: ${domain.name}
11 changes: 11 additions & 0 deletions digitalocean-yaml/Pulumi.yaml.append
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

resources:
# Create a DigitalOcean resource (Domain)
domain:
type: digitalocean:Domain
properties:
name: my-domain.io

outputs:
# Export the name of the domain
domainName: ${domain.name}
16 changes: 16 additions & 0 deletions equinix-metal-yaml/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: ${PROJECT}
description: ${DESCRIPTION}
runtime: yaml
template:
description: A minimal Equinix Metal Pulumi YAML program

resources:
# Create an Equinix Metal resource (Project)
project:
type: metal:Project
properties:
name: My Test Project

outputs:
# Export the name of the project
projectName: ${project.name}
11 changes: 11 additions & 0 deletions equinix-metal-yaml/Pulumi.yaml.append
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

resources:
# Create an Equinix Metal resource (Project)
project:
type: metal:Project
properties:
name: My Test Project

outputs:
# Export the name of the project
projectName: ${project.name}
20 changes: 20 additions & 0 deletions gcp-yaml/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: ${PROJECT}
description: ${DESCRIPTION}
runtime: yaml
template:
description: A minimal Google Cloud Pulumi YAML program
important: true
config:
gcp:project:
description: The Google Cloud project to deploy into

resources:
# Create a GCP resource (Storage Bucket)
bucket:
type: gcp:storage:Bucket
properties:
location: US

outputs:
# Export the DNS name of the bucket
bucketName: ${bucket.url}
11 changes: 11 additions & 0 deletions gcp-yaml/Pulumi.yaml.append
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

resources:
# Create a GCP resource (Storage Bucket)
bucket:
type: gcp:storage:Bucket
properties:
location: US

outputs:
# Export the DNS name of the bucket
bucketName: ${bucket.url}
Loading

0 comments on commit 8296a16

Please sign in to comment.