aws

package
v0.19.1221 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 ExtractAWSStandardInlinePoliciesRaw added in v0.19.1049

func ExtractAWSStandardInlinePoliciesRaw(appCfg *app.AppConfig) (provision, maintenance, deprovision string, err error)

ExtractAWSStandardInlinePoliciesRaw returns the merged inline policy document for each standard operation role.

func ExtractAWSStandardPermissionsRaw added in v0.19.1049

func ExtractAWSStandardPermissionsRaw(appCfg *app.AppConfig) (provision, maintenance, deprovision []string)

ExtractAWSStandardPermissionsRaw returns the managed policy ARNs for the standard provision/maintenance/deprovision operation roles.

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 AWSRoleRaw added in v0.19.1049

type AWSRoleRaw struct {
	Name                 string
	InlinePolicyDocument string
	ManagedPolicyARNs    []string
}

AWSRoleRaw is the un-rendered per-role payload the stack SDK consumes: an operation/break-glass/custom role's merged inline policy and managed policy ARNs, without the CloudFormation-specific wrapping.

func ExtractAWSRolesFromListRaw added in v0.19.1049

func ExtractAWSRolesFromListRaw(roles []app.AppAWSIAMRoleConfig) ([]AWSRoleRaw, error)

ExtractAWSRolesFromListRaw returns the raw payload for a list of break-glass or custom AWS roles, skipping non-AWS and empty roles.

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