aws

package
v0.12.7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchUpsertTags

func BatchUpsertTags(ctx context.Context, region, zone, cspResourceId, resourceType string, tags map[string]string) error

BatchUpsertTags sets multiple tags on an AWS EC2 resource in a single CreateTags call. Only resource types in ec2TaggableTypes are handled; others fall back to CB-Spider.

func FetchAllNodePrices

func FetchAllNodePrices(ctx context.Context) (map[string]model.SpiderCloudPrice, error)

FetchAllNodePrices fetches EC2 Linux OnDemand pricing for ALL AWS regions in a single paginated query to the AWS Pricing API (no regionCode filter), then groups results by region code. This eliminates the N-Spider-calls overhead of the legacy per-region path.

Only one call chain is made regardless of how many AWS regions are configured in CB-TB. Returns map[regionCode] → SpiderCloudPrice, compatible with the existing BulkUpdateSpec path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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