pkg

package
v0.0.0-...-9dc5ec1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSession

func GetSession(region string, profile string) *session.Session

GetSession retrieves the AWS session if possible

func ParseASGTags

func ParseASGTags(tagsToRead string, client autoscalingiface.AutoScalingAPI) [][]string

ParseASGTags parse output from getASGs and return ASG name and specified tags.

func ParseConfigRuleTags

func ParseConfigRuleTags(tagsToRead string, client configserviceiface.ConfigServiceAPI) [][]string

ParseConfigRuleTags parse output from getCWAlarm and return alarm arn and specified tags.

func ParseCwAlarmTags

func ParseCwAlarmTags(tagsToRead string, client cloudwatchiface.CloudWatchAPI) [][]string

ParseCwAlarmTags parse output from getCWAlarm and return alarm arn and specified tags.

func ParseCwLogGroupTags

func ParseCwLogGroupTags(tagsToRead string, client cloudwatchlogsiface.CloudWatchLogsAPI) [][]string

ParseCwLogGroupTags parse output from getInstances and return logGroupName and specified tags.

func ParseDistributionsTags

func ParseDistributionsTags(tagsToRead string, client cloudfrontiface.CloudFrontAPI) [][]string

ParseDistributionsTags parse output from getDistributions and return distribution arn and specified tags.

func ParseEBSVolumeTags

func ParseEBSVolumeTags(tagsToRead string, client ec2iface.EC2API) [][]string

ParseEBSVolumeTags parse output from getEBSVolumes and return volume ID and specified tags.

func ParseEBTags

func ParseEBTags(tagsToRead string, client elasticbeanstalkiface.ElasticBeanstalkAPI) [][]string

ParseEBTags parse output from getEBInstances and return eb id and specified tags.

func ParseEC2Tags

func ParseEC2Tags(tagsToRead string, client ec2iface.EC2API) [][]string

ParseEC2Tags parse output from getEC2Instances and return instances id and specified tags.

func ParseEcrRepositoriesTags

func ParseEcrRepositoriesTags(tagsToRead string, client ecriface.ECRAPI) [][]string

ParseEcrRepositoriesTags parse output from getEcrRepositories and return repo arn and specified tags.

func ParseElastiCacheClusterTags

func ParseElastiCacheClusterTags(tagsToRead string, client elasticacheiface.ElastiCacheAPI, stsClient stsiface.STSAPI, region string) [][]string

ParseElastiCacheClusterTags parse output from getElastiCacheClusters and return arn and specified tags.

func ParseElasticSearchTags

func ParseElasticSearchTags(tagsToRead string, client elasticsearchserviceiface.ElasticsearchServiceAPI, stsClient stsiface.STSAPI, region string) [][]string

ParseElasticSearchTags parse output from getElasticSearchDomains and return arn and specified tags.

func ParseElbV2Tags

func ParseElbV2Tags(tagsToRead string, client elbv2iface.ELBV2API) [][]string

ParseElbV2Tags parse output from getInstances and return instances id and specified tags.

func ParseFirehoseTags

func ParseFirehoseTags(tagsToRead string, client firehoseiface.FirehoseAPI) [][]string

ParseFirehoseTags parse output from getFirehoses and return firehose name and specified tags.

func ParseIamRolesTags

func ParseIamRolesTags(tagsToRead string, client iamiface.IAMAPI) [][]string

ParseIamRolesTags parse output from getIamRoles and return roles and specified tags.

func ParseIamUserTags

func ParseIamUserTags(tagsToRead string, client iamiface.IAMAPI) [][]string

ParseIamUserTags parse output from getIamUsers and return username and specified tags.

func ParseKinesisTags

func ParseKinesisTags(tagsToRead string, client kinesisiface.KinesisAPI) [][]string

ParseKinesisTags parse output from getStreams and return kinesis arn and specified tags.

func ParseLambdaFunctionTags

func ParseLambdaFunctionTags(tagsToRead string, client lambdaiface.LambdaAPI) [][]string

ParseLambdaFunctionTags parse output from getLambdaFunctions and return arn and specified tags.

func ParseRDSTags

func ParseRDSTags(tagsToRead string, client rdsiface.RDSAPI) [][]string

ParseRDSTags parse output from getRDSInstances and return arn and specified tags.

func ParseRedshiftTags

func ParseRedshiftTags(tagsToRead string, client redshiftiface.RedshiftAPI, stsClient stsiface.STSAPI, region string) [][]string

ParseRedshiftTags parse output from getRedshiftInstances and return arn and specified tags.

func ParseS3Tags

func ParseS3Tags(tagsToRead string, client s3iface.S3API) [][]string

ParseS3Tags parse output from getBuckets and return instances id and specified tags.

func ParseSecurityGroupTags

func ParseSecurityGroupTags(tagsToRead string, client ec2iface.EC2API) [][]string

ParseSecurityGroupTags parse output from getSecurityGroups and return SG ids and specified tags.

func ReadCsv

func ReadCsv(filename string) [][]string

ReadCsv reads a csv file from disk

func TagASG

func TagASG(csvData [][]string, client autoscalingiface.AutoScalingAPI)

TagASG tag ASGs. Take as input data from csv file.

func TagCloudWatchAlarm

func TagCloudWatchAlarm(csvData [][]string, client cloudwatchiface.CloudWatchAPI)

TagCloudWatchAlarm tag cloudwatch alarms. Take as input data from csv file. Where first column Arn

func TagCloudWatchLogGroups

func TagCloudWatchLogGroups(csvData [][]string, client cloudwatchlogsiface.CloudWatchLogsAPI)

TagCloudWatchLogGroups tag cloudwatch log groups. Take as input data from csv file. Where first column LogGroupName

func TagConfigRule

func TagConfigRule(csvData [][]string, client configserviceiface.ConfigServiceAPI)

TagConfigRule tag config rules. Take as input data from csv file. Where first column Arn

func TagDistribution

func TagDistribution(csvData [][]string, client cloudfrontiface.CloudFrontAPI)

TagDistribution tag cloudfront distribution. Take as input data from csv file. Where first column Arn

func TagEBSVolumes

func TagEBSVolumes(csvData [][]string, client ec2iface.EC2API)

TagEBSVolumes tag EBS volumes. Take as input data from csv file. Where first column is volume ID.

func TagEbEnvironments

func TagEbEnvironments(csvData [][]string, client elasticbeanstalkiface.ElasticBeanstalkAPI)

TagEbEnvironments tag eb environments. Take as input data from csv file. Where first column is arn

func TagEc2

func TagEc2(csvData [][]string, client ec2iface.EC2API)

TagEc2 tag instances. Take as input data from csv file. Where first column id

func TagEcrRepo

func TagEcrRepo(csvData [][]string, client ecriface.ECRAPI)

TagEcrRepo tag ecr repo. Take as input data from csv file. Where first column is name

func TagElastiCache

func TagElastiCache(csvData [][]string, client elasticacheiface.ElastiCacheAPI)

TagElastiCache tag instances. Take as input data from csv file. Where first column id

func TagElasticSearch

func TagElasticSearch(csvData [][]string, client elasticsearchserviceiface.ElasticsearchServiceAPI)

TagElasticSearch tag instances. Take as input data from csv file. Where first column id

func TagElbV2

func TagElbV2(csvData [][]string, client elbv2iface.ELBV2API)

TagElbV2 tag elbv2(application and network). Take as input data from csv file. Where first column id

func TagFirehose

func TagFirehose(csvData [][]string, client firehoseiface.FirehoseAPI)

TagFirehose tag kinesis firehose. Take as input data from csv file. Where first column name

func TagIamRole

func TagIamRole(csvData [][]string, client iamiface.IAMAPI)

TagIamRole tag iam user. Take as input data from csv file. Where first column is name

func TagIamUser

func TagIamUser(csvData [][]string, client iamiface.IAMAPI)

TagIamUser tag iam user. Take as input data from csv file. Where first column is name

func TagKinesisStream

func TagKinesisStream(csvData [][]string, client kinesisiface.KinesisAPI)

TagKinesisStream tag kinesis stream. Take as input data from csv file. Where first column id

func TagLambda

func TagLambda(csvData [][]string, client lambdaiface.LambdaAPI)

TagLambda tag instances. Take as input data from csv file. Where first column id

func TagRDS

func TagRDS(csvData [][]string, client rdsiface.RDSAPI)

TagRDS tag rds instances. Take as input data from csv file. Where first column arn

func TagRedShift

func TagRedShift(csvData [][]string, client redshiftiface.RedshiftAPI)

TagRedShift tag rds instances. Take as input data from csv file. Where first column arn

func TagS3

func TagS3(csvData [][]string, client s3iface.S3API)

TagS3 tag instances. Take as input data from csv file. Where first column id

func TagSecurityGroups

func TagSecurityGroups(csvData [][]string, client ec2iface.EC2API)

TagSecurityGroups tag security groups. Take as input data from csv file. Where first column id

func WriteCsv

func WriteCsv(data [][]string, filename string)

WriteCsv writes the csv data to disk

Types

This section is empty.

Jump to

Keyboard shortcuts

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