aws

package
v0.19.908 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package aws renders the install-stacks/aws Terraform module's tfvars file for an AWS install.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(inputs *stacks.TemplateInput, supportIAMRoleARN string) ([]byte, string, error)

Render emits a JSON-wrapped tfvars envelope for the install-stacks/aws module.

`supportIAMRoleARN` is the Nuon control-plane IAM role ARN that the operation roles (provision/maintenance/deprovision/break-glass/custom) must trust. Sourced from the ctl-api `runner_default_support_iam_role_arn` config — same value the CFN role-builder uses

Custom nested stacks (CloudFormation customer extensions) are intentionally not translated. Vendors who extend their CFN stack with custom resources are expected to fork install-stacks and make equivalent Terraform changes there.

Types

type AWSRoleTemplateInput

type AWSRoleTemplateInput struct {
	Name                 string
	Permissions          string
	InlinePolicyDocument string
	ManagedPolicyArns    string
}

AWSRoleTemplateInput holds the per-role data rendered into the template.

type AWSSecretTemplateInput

type AWSSecretTemplateInput struct {
	Name        string
	Description string
	Required    bool
	Default     string
}

AWSSecretTemplateInput holds a non-auto-gen secret definition for the template.

type AWSTemplateInput

type AWSTemplateInput struct {
	*stacks.TemplateInput

	ControlPlaneAccountIDs string

	ProvisionPermissions   string
	MaintenancePermissions string
	DeprovisionPermissions string

	ProvisionInlinePolicyDocument   string
	MaintenanceInlinePolicyDocument string
	DeprovisionInlinePolicyDocument string

	ProvisionManagedPolicyArns   string
	MaintenanceManagedPolicyArns string
	DeprovisionManagedPolicyArns string

	BreakGlassRoles []AWSRoleTemplateInput
	CustomRoles     []AWSRoleTemplateInput
	InstallInputs   []string

	AutoGenerateSecrets []string
	Secrets             []AWSSecretTemplateInput
}

AWSTemplateInput extends TemplateInput with pre-marshaled AWS IAM data.

Jump to

Keyboard shortcuts

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