The examples below illustrate the use of Resource Packs to provision a particular infrastructure resource.
A Resource Pack example may contain several Resource Definitions, usually of different types, working in conjunction. Therefore, there is not always a one-to-one relationship of Resource Pack to Resource Type. Refer to the description of the individual examples for details.
The Resource Packs examples are based on Terraform and are meant to be used with the Humanitec Terraform Provider. Scroll down in each example to find the sample .tf
files and integrate their content into your own Terraform code base.
This example configures an azure-blob and an azure-blob-account Resource Definition to enable workloads to use Azure Blob Storage.
(...)
This example configures a config Resource Definition, which injects an imagePullSecret into workloads. An
imagePullSecret
is required when the k8s cluster runs outside AWS and workload use private ECR images.
(...)
Dns
Aws
This example configures a dns Resource Definition using AWS Route 53. A workload using the
dns
resource to create dns records looks like:
(...)
Dns
Gcp
This example configures a dns Resource Definition using GCP Cloud DNS. A workload using the
dns
resource to create dns records looks like:
(...)
This example configures a gcp-pubsub-topic and a gcp-pubsub-subscription Resource Definition using Google Cloud Pub/Sub.
(...)
This example configures a gcs Resource Definition using Google Cloud Storage, with two different access policies:
(...)
Mongodb
In Cluster
This example configures a mysql Resource Definition using AWS RDS Aurora. A workload using the
mysql
resource to create database instance looks like:
(...)
This example configures a mysql Resource Definition using AWS RDS. A workload using the
mysql
resource to create database instance looks like:
(...)
Mysql
Azure
This example configures a mysql Resource Definition using Azure Database for MySQL.
(...)
This example configures a mysql Resource Definition using GCP CloudSQL. A workload using the
mysql
resource to create database instance looks like:
(...)
Mysql
In Cluster
This example configures a postgres Resource Definition using AWS RDS Aurora. A workload using the
postgres
resource to create database instance looks like:
(...)
This example configures a postgres Resource Definition using AWS RDS. A workload using the
postgres
resource to create database instance looks like:
(...)
Using this examples requires the “Enable Private Endpoints for PostgreSQL flexible servers” preview feature to be enabled.
(...)
This example configures a postgres Resource Definition using GCP CloudSQL. A workload using the
postgres
resource to create database instance looks like:
(...)
Postgres
In ClusterRedis
Aws
This example configures a redis Resource Definition using AWS ElastiCache. A workload using the
redis
resource to create redis cluster looks like:
(...)
This example configures a redis Resource Definition using GCP Memorystore. A workload using the
redis
resource to create redis cluster looks like:
(...)
Redis
In Cluster
This example configures a s3 Resource Definition using AWS S3, with two different access policies:
(...)
This example configures a azure-service-bus-queue Resource Definition using Azure Service Bus, with two different access policies:
(...)