aws

package
v0.90.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 37

Documentation

Overview

Package aws contains AWS-specific Terraform-variable logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TFVars added in v0.9.2

func TFVars(sources TFVarsSources) ([]byte, error)

TFVars generates AWS-specific Terraform variables launching the cluster.

Types

type Config added in v0.9.153

type Config struct {
	AMI                             string            `json:"aws_ami"`
	AMIRegion                       string            `json:"aws_ami_region"`
	CustomEndpoints                 map[string]string `json:"custom_endpoints,omitempty"`
	ExtraTags                       map[string]string `json:"aws_extra_tags,omitempty"`
	BootstrapInstanceType           string            `json:"aws_bootstrap_instance_type,omitempty"`
	MasterInstanceType              string            `json:"aws_master_instance_type,omitempty"`
	MasterAvailabilityZones         []string          `json:"aws_master_availability_zones"`
	WorkerAvailabilityZones         []string          `json:"aws_worker_availability_zones"`
	EdgeLocalZones                  []string          `json:"aws_edge_local_zones,omitempty"`
	EdgeZonesGatewayIndex           map[string]int    `json:"aws_edge_parent_zones_index,omitempty"`
	EdgeZonesType                   map[string]string `json:"aws_edge_zones_type,omitempty"`
	IOPS                            int64             `json:"aws_master_root_volume_iops"`
	Size                            int64             `json:"aws_master_root_volume_size,omitempty"`
	Type                            string            `json:"aws_master_root_volume_type,omitempty"`
	Encrypted                       bool              `json:"aws_master_root_volume_encrypted"`
	KMSKeyID                        string            `json:"aws_master_root_volume_kms_key_id,omitempty"`
	Region                          string            `json:"aws_region,omitempty"`
	VPC                             string            `json:"aws_vpc,omitempty"`
	PrivateSubnets                  []string          `json:"aws_private_subnets,omitempty"`
	PublicSubnets                   *[]string         `json:"aws_public_subnets,omitempty"`
	InternalZone                    string            `json:"aws_internal_zone,omitempty"`
	InternalZoneRole                string            `json:"aws_internal_zone_role,omitempty"`
	PublishStrategy                 string            `json:"aws_publish_strategy,omitempty"`
	IgnitionBucket                  string            `json:"aws_ignition_bucket"`
	BootstrapIgnitionStub           string            `json:"aws_bootstrap_stub_ignition"`
	MasterIAMRoleName               string            `json:"aws_master_iam_role_name,omitempty"`
	WorkerIAMRoleName               string            `json:"aws_worker_iam_role_name,omitempty"`
	MasterMetadataAuthentication    string            `json:"aws_master_instance_metadata_authentication,omitempty"`
	BootstrapMetadataAuthentication string            `json:"aws_bootstrap_instance_metadata_authentication,omitempty"`
	PreserveBootstrapIgnition       bool              `json:"aws_preserve_bootstrap_ignition"`
	MasterSecurityGroups            []string          `json:"aws_master_security_groups,omitempty"`
	PublicIpv4Pool                  string            `json:"aws_public_ipv4_pool"`
	MasterUseSpotInstance           bool              `json:"aws_master_use_spot_instance,omitempty"`
}

Config contains the AWS platform data for terraform.

type TFVarsSources added in v0.9.2

type TFVarsSources struct {
	VPC                            string
	PrivateSubnets, PublicSubnets  []string
	InternalZone, InternalZoneRole string
	Services                       []typesaws.ServiceEndpoint
	AvailabilityZones              icaws.Zones

	Publish types.PublishingStrategy

	AMIID, AMIRegion string

	MasterConfigs, WorkerConfigs []*machinev1beta1.AWSMachineProviderConfig

	IgnitionBucket, IgnitionPresignedURL string

	AdditionalTrustBundle string

	MasterIAMRoleName, WorkerIAMRoleName string

	MasterMetadataAuthentication string

	Architecture types.Architecture

	Proxy *types.Proxy

	PreserveBootstrapIgnition bool

	MasterSecurityGroups []string

	PublicIpv4Pool string
}

TFVarsSources contains the parameters to be converted into Terraform variables

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL