Skip to content

Latest commit

 

History

History
78 lines (60 loc) · 5.95 KB

README.md

File metadata and controls

78 lines (60 loc) · 5.95 KB

Hello Universe TF

This folder contains the demo code for the Create and Deploy a Custom Add-On Pack tutorial. Use the code in this directory with the tutorial.

To get started, review the prerequisites. Next, follow the steps in the tutorial to deploy the cluster and custom add-on pack. Use the terraform.tfvars file to provide the required variables. Once you populate the variables, you can deploy the cluster and custom add-on pack.

Prerequisites

You will need the following things before getting started:

  1. A Palette API key.
  2. A cloud account added to your Palette project settings.
  3. An AWS Key pair or SSH key created in the region where you will deploy the cluster.

Note

This Terraform code will deploy the resources specified in the template to AWS.

Requirements

Name Version
aws ~> 5.0
spectrocloud >= 0.16.1

Providers

Name Version
aws 5.25.0
spectrocloud 0.16.1

Modules

No modules.

Resources

Name Type
spectrocloud_cluster_aws.cluster resource
spectrocloud_cluster_profile.profile resource
aws_availability_zones.available data source
spectrocloud_cloudaccount_aws.account data source
spectrocloud_pack.cni data source
spectrocloud_pack.csi data source
spectrocloud_pack.hellouniverse data source
spectrocloud_pack.k8s data source
spectrocloud_pack.ubuntu data source
spectrocloud_registry.hellouniverseregistry data source
spectrocloud_registry.public_registry data source
spectrocloud_registry_oci.hellouniverseregistry data source

Inputs

Name Description Type Default Required
aws_az_names Provide a list of AWS Availability Zones. For example: ['us-east-1a', 'us-east-1b', 'us-east-1c'] list(string) [] no
aws_region_name Specify the AWS region where you want to deploy the cluster. string n/a yes
cluster_cloud_account_aws_name Specify the AWS account integrated with Palette. Use the same name as the one used in the Palette project settings. string n/a yes
cluster_name The name of the cluster. string "pack-tutorial-cluster" no
cluster_profile_description Provide a description of the cluster profile. string "My cluster profile as part of the packs tutorial." no
cluster_profile_name The name of the cluster profile. string "pack-tutorial-profile" no
custom_addon_pack Custom add-on pack name. string "hellouniverse" no
custom_addon_pack_version Custom add-on pack version. string "1.0.0" no
instance_type Specify the AWS instance type. string "m4.xlarge" no
private_pack_registry The name of the private pack registry server. string n/a yes
ssh_key_name Specify the AWS Keypair available in the AWS region where you want to deploy the cluster. string n/a yes
tags The default tags to apply to Palette resources list(string)
[
"spectro-cloud-education",
"app:hello-universe",
"terraform_managed:true"
]
no
use_oci_registry Set the use of OCI registry to true or false. If you are not using an OCI registry, set this value to false. bool true no

Outputs

Name Description
Advisory n/a
profile_id n/a