clean

package
v1.300028.4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 1 Imported by: 0

README

What does the cleaner do?

###Cleaner cleans out old ami (ami older than 60 days)

The cleaner first searches for ami names (these are the ami created by the pipeline for use int he integration tests)

  1. cloudwatch-agent-integration-test*

Then checks to see if the creation date is greater than 60 days. (The aws sdk v2 gives creation date as a pointer to string. To convert to golang time we use the aws smithy go time. This allows us to compare to 60 days in past time)

If the ami is older than 60 days old then we delete the ami

###Cleans dedicated hosts for mac

The cleaner first searches for dedicated host tag Name:IntegrationTestMacDedicatedHost

Then checks to see if the creation date is greater than 26 hours and host status is available

Delete is true

Documentation

Index

Constants

View Source
const (
	KeepDurationOneWeek        = KeepDurationOneDay * 7
	KeepDurationOneDay         = -1 * time.Hour * 24
	KeepDurationSixtyDay       = KeepDurationOneDay * time.Duration(60)
	KeepDurationTwentySixHours = KeepDurationOneDay + time.Hour*2
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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