Documentation ¶
Index ¶
- func CheckCertificateStatus(certificate *acm.DescribeCertificateOutput, region string)
- func CheckECRRepositoryLifecyclePolicy(repositoryName string, region string) bool
- func CheckIfRecoredSetValueInRoute53(record string, value string, hostedZoneID string, region string) bool
- func CreateLambdaCloudwatchAlarm(region string, functionName string, metricName string, namespace string, ...) bool
- func DeleteRdsSnapshots(rdsSnapshots []RdsSnapshotInfo, older int, region string, apply bool, ...)
- func DeleteUnusedAcmCertificates(region string, apply bool)
- func DescribeAcmCertificate(region string, arnCertificate string) *acm.DescribeCertificateOutput
- func EcrDeleteOldImageBuildsAndKeep(repositoryName string, region string, imagesToKeep int)
- func GetAcmCertificates(region string) []*acm.CertificateSummary
- func GetAllAwsAzs(region string) (azs []string, err error)
- func GetAllAwsRegions() ([]string, error)
- func GetAllEc2Events(region string, out string)
- func GetAllLmbdasInRegion(region string, arn string) []*lambda.FunctionConfiguration
- func GetAllRds(region string, rdsType string, out string)
- func GetAllRdsDBClusters(region string, out string)
- func GetAwsServiceCost() *pricing.GetProductsOutput
- func GetCloudwatchGroups(region string) []*cloudwatchlogs.LogGroup
- func GetDefaultAwsRegion() (region string)
- func GetDomainHostedZoneID(domain string, region string) (domainHostedZoneID string, exists bool)
- func GetECRRepositories(region string) []*ecr.Repository
- func InitAwsSession(region string) (*session.Session, error)
- func ListCloudwatchAlarms(region string) []*cloudwatch.MetricAlarm
- func PrintRdsSnapshotInformation(rdsSnapshotInformation []RdsSnapshotInfo, region string, out string)
- func SetCloudwatchGroupsExpiry(region string, retention int64, cloudwatchGroups []*cloudwatchlogs.LogGroup, ...)
- func SetEcrRepoImageScanOnPush(repositoryName string, region string, scanOnPush bool)
- func SetEcrRepositoryLifecyclePolicy(repositoryName string, days int, region string)
- type Ec2Event
- type RdsSnapshotInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCertificateStatus ¶
func CheckCertificateStatus(certificate *acm.DescribeCertificateOutput, region string)
CheckCertificateStatus checking certificate status
func CheckECRRepositoryLifecyclePolicy ¶
CheckECRRepositoryLifecyclePolicy for a repository in a region
func CheckIfRecoredSetValueInRoute53 ¶
func CheckIfRecoredSetValueInRoute53(record string, value string, hostedZoneID string, region string) bool
CheckIfRecoredSetValueInRoute53 Checks if a recored exists in Route53
func CreateLambdaCloudwatchAlarm ¶
func CreateLambdaCloudwatchAlarm(region string, functionName string, metricName string, namespace string, threshold float64, action string) bool
CreateLambdaCloudwatchAlarm will create a new alarm for cloudwatch
func DeleteRdsSnapshots ¶
func DeleteRdsSnapshots(rdsSnapshots []RdsSnapshotInfo, older int, region string, apply bool, rdsType string, out string)
DeleteRdsSnapshots for deleting snapshots by date
func DeleteUnusedAcmCertificates ¶
DeleteUnusedAcmCertificates deletes all unused certificate in a region
func DescribeAcmCertificate ¶
func DescribeAcmCertificate(region string, arnCertificate string) *acm.DescribeCertificateOutput
DescribeAcmCertificate to list certificate metadata
func EcrDeleteOldImageBuildsAndKeep ¶
EcrDeleteOldImageBuildsAndKeep delete old images and keep only n last images
func GetAcmCertificates ¶
func GetAcmCertificates(region string) []*acm.CertificateSummary
GetAcmCertificates retrives all certificates
func GetAllAwsAzs ¶
GetAllAwsAzs retriva all available azs in a region
func GetAllAwsRegions ¶
GetAllAwsRegions will retrive all aws regions
func GetAllEc2Events ¶
GetAllEc2Events will check for all events
func GetAllLmbdasInRegion ¶
func GetAllLmbdasInRegion(region string, arn string) []*lambda.FunctionConfiguration
GetAllLmbdasInRegion List all lambdas in a region
func GetAllRdsDBClusters ¶
GetAllRdsDBClusters get all rds db clusters
func GetAwsServiceCost ¶
func GetAwsServiceCost() *pricing.GetProductsOutput
GetAwsServiceCost use to get a prouct code for getting price
func GetCloudwatchGroups ¶
func GetCloudwatchGroups(region string) []*cloudwatchlogs.LogGroup
GetCloudwatchGroups getting all cloudwatch groups in a region
func GetDefaultAwsRegion ¶
func GetDefaultAwsRegion() (region string)
GetDefaultAwsRegion resolve deafult region
func GetDomainHostedZoneID ¶
GetDomainHostedZoneID function get domain name and return its hosted zone id and if exists
func GetECRRepositories ¶
func GetECRRepositories(region string) []*ecr.Repository
GetECRRepositories from aws region
func InitAwsSession ¶
InitAwsSession initlize aws session
func ListCloudwatchAlarms ¶
func ListCloudwatchAlarms(region string) []*cloudwatch.MetricAlarm
ListCloudwatchAlarms list all cloudwatch alarms
func PrintRdsSnapshotInformation ¶
func PrintRdsSnapshotInformation(rdsSnapshotInformation []RdsSnapshotInfo, region string, out string)
PrintRdsSnapshotInformation print the needed snapshot information
func SetCloudwatchGroupsExpiry ¶
func SetCloudwatchGroupsExpiry(region string, retention int64, cloudwatchGroups []*cloudwatchlogs.LogGroup, apply bool)
SetCloudwatchGroupsExpiry Set expiry on a cloudwatch group
func SetEcrRepoImageScanOnPush ¶
SetEcrRepoImageScanOnPush set image scan on push configuration on ecr repository
func SetEcrRepositoryLifecyclePolicy ¶
SetEcrRepositoryLifecyclePolicy set the life time policy
Types ¶
type RdsSnapshotInfo ¶
type RdsSnapshotInfo struct {
// contains filtered or unexported fields
}
RdsSnapshotInfo rds snapshot struct
func GetRDSSnapshots ¶
func GetRDSSnapshots(resourceName string, rdsType string, region string, out string) []RdsSnapshotInfo
GetRDSSnapshots get all snapshot for instance(s) or clusters