controltower

package
v0.0.0-...-1687775 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package controltower provides functionality for managing AWS Control Tower landing zones. Version: 1.0.0

Index

Constants

View Source
const (
	// Role names
	RoleNameControlTowerAdmin = "AWSControlTowerAdmin"
	RoleNameCloudTrail        = "AWSControlTowerCloudTrail"
	RoleNameStackSet          = "AWSControlTowerStackSet"

	// Path prefixes
	ServiceRolePath = "/service-role/"

	// Resource naming
	CloudTrailName         = "aws-controltower-trail"
	CloudWatchLogGroupName = "/aws/controltower/cloudtrail"

	// Retry configuration
	MaxRetryAttempts = 3
	BaseRetryDelay   = time.Second * 2
	MaxRetryDelay    = time.Second * 30

	// Rate limiting
	RateLimit = 10
	RateBurst = 20
)

Constants for resource naming and configuration

Variables

This section is empty.

Functions

func SetupLandingZone

func SetupLandingZone(ctx *pulumi.Context, org *config.OrganizationSetup, cfg *config.LandingZoneConfig) error

SetupLandingZone configures the Control Tower landing zone

Types

type LandingZone

type LandingZone struct {
	// contains filtered or unexported fields
}

LandingZone represents a Control Tower landing zone configuration

func NewLandingZone

func NewLandingZone(ctx context.Context) (*LandingZone, error)

NewLandingZone creates a new landing zone instance

func (*LandingZone) Backup

func (lz *LandingZone) Backup(ctx context.Context) error

Backup creates a backup of the landing zone configuration

func (*LandingZone) Restore

func (lz *LandingZone) Restore(ctx context.Context, backupId string) error

Restore restores the landing zone configuration from a backup

type LandingZoneService

type LandingZoneService interface {
	Setup(ctx *pulumi.Context, org *config.OrganizationSetup, cfg *config.LandingZoneConfig) error
	EnableGuardrails(ctx *pulumi.Context, cfg *config.LandingZoneConfig) error
	ConfigureLogging(ctx *pulumi.Context, cfg *config.LandingZoneConfig) error
	Backup(ctx context.Context) error
	Restore(ctx context.Context, backupId string) error
}

LandingZoneService defines the interface for landing zone operations

Jump to

Keyboard shortcuts

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