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 ¶
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.
Click to show internal directories.
Click to hide internal directories.