cloudformation

package
v1.235.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 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 cloudformation provides a minimal, direct AWS SDK v2 read of a deployed CloudFormation stack's Outputs, for consumers outside pkg/component/aws/cloudformation (which already owns the full CFN component implementation but cannot be imported back into internal/exec — it imports internal/exec itself). Kept intentionally narrow: a single DescribeStacks call, mirroring pkg/aws/identity's and pkg/aws/organization's shape as a small, provider-specific leaf package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckStackDeployed

func CheckStackDeployed(stackName string, status cfntypes.StackStatus) error

CheckStackDeployed returns ErrAwsCloudFormationStackNotDeployed when status is one that carries no deployed resources, so callers never mistake a stub stack's empty Outputs for real values.

func GetOutputs

func GetOutputs(ctx context.Context, region, stackName string, authContext *schema.AWSAuthContext) (map[string]any, error)

GetOutputs fetches a deployed CloudFormation stack's Outputs, keyed by Output name. AuthContext's EndpointURL (when set) is honored so this also reaches a Floci-emulated CloudFormation endpoint, matching pkg/component/aws/cloudformation's own client construction.

func LookupOutput

func LookupOutput(outputs map[string]any, stackName, key string) (any, error)

LookupOutput returns the value of one Output key, or ErrAwsCloudFormationOutputNotFound naming the key and listing the keys the stack does have, so a misspelled key fails loudly instead of resolving to null.

Types

This section is empty.

Jump to

Keyboard shortcuts

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