Documentation ¶
Index ¶
- func GetSession(region string, profile string) *session.Session
- func ParseASGTags(tagsToRead string, client autoscalingiface.AutoScalingAPI) [][]string
- func ParseConfigRuleTags(tagsToRead string, client configserviceiface.ConfigServiceAPI) [][]string
- func ParseCwAlarmTags(tagsToRead string, client cloudwatchiface.CloudWatchAPI) [][]string
- func ParseCwLogGroupTags(tagsToRead string, client cloudwatchlogsiface.CloudWatchLogsAPI) [][]string
- func ParseDistributionsTags(tagsToRead string, client cloudfrontiface.CloudFrontAPI) [][]string
- func ParseEBSVolumeTags(tagsToRead string, client ec2iface.EC2API) [][]string
- func ParseEBTags(tagsToRead string, client elasticbeanstalkiface.ElasticBeanstalkAPI) [][]string
- func ParseEC2Tags(tagsToRead string, client ec2iface.EC2API) [][]string
- func ParseEcrRepositoriesTags(tagsToRead string, client ecriface.ECRAPI) [][]string
- func ParseElastiCacheClusterTags(tagsToRead string, client elasticacheiface.ElastiCacheAPI, ...) [][]string
- func ParseElasticSearchTags(tagsToRead string, client elasticsearchserviceiface.ElasticsearchServiceAPI, ...) [][]string
- func ParseElbV2Tags(tagsToRead string, client elbv2iface.ELBV2API) [][]string
- func ParseFirehoseTags(tagsToRead string, client firehoseiface.FirehoseAPI) [][]string
- func ParseIamRolesTags(tagsToRead string, client iamiface.IAMAPI) [][]string
- func ParseIamUserTags(tagsToRead string, client iamiface.IAMAPI) [][]string
- func ParseKinesisTags(tagsToRead string, client kinesisiface.KinesisAPI) [][]string
- func ParseLambdaFunctionTags(tagsToRead string, client lambdaiface.LambdaAPI) [][]string
- func ParseRDSTags(tagsToRead string, client rdsiface.RDSAPI) [][]string
- func ParseRedshiftTags(tagsToRead string, client redshiftiface.RedshiftAPI, stsClient stsiface.STSAPI, ...) [][]string
- func ParseS3Tags(tagsToRead string, client s3iface.S3API) [][]string
- func ParseSecurityGroupTags(tagsToRead string, client ec2iface.EC2API) [][]string
- func ReadCsv(filename string) [][]string
- func TagASG(csvData [][]string, client autoscalingiface.AutoScalingAPI)
- func TagCloudWatchAlarm(csvData [][]string, client cloudwatchiface.CloudWatchAPI)
- func TagCloudWatchLogGroups(csvData [][]string, client cloudwatchlogsiface.CloudWatchLogsAPI)
- func TagConfigRule(csvData [][]string, client configserviceiface.ConfigServiceAPI)
- func TagDistribution(csvData [][]string, client cloudfrontiface.CloudFrontAPI)
- func TagEBSVolumes(csvData [][]string, client ec2iface.EC2API)
- func TagEbEnvironments(csvData [][]string, client elasticbeanstalkiface.ElasticBeanstalkAPI)
- func TagEc2(csvData [][]string, client ec2iface.EC2API)
- func TagEcrRepo(csvData [][]string, client ecriface.ECRAPI)
- func TagElastiCache(csvData [][]string, client elasticacheiface.ElastiCacheAPI)
- func TagElasticSearch(csvData [][]string, client elasticsearchserviceiface.ElasticsearchServiceAPI)
- func TagElbV2(csvData [][]string, client elbv2iface.ELBV2API)
- func TagFirehose(csvData [][]string, client firehoseiface.FirehoseAPI)
- func TagIamRole(csvData [][]string, client iamiface.IAMAPI)
- func TagIamUser(csvData [][]string, client iamiface.IAMAPI)
- func TagKinesisStream(csvData [][]string, client kinesisiface.KinesisAPI)
- func TagLambda(csvData [][]string, client lambdaiface.LambdaAPI)
- func TagRDS(csvData [][]string, client rdsiface.RDSAPI)
- func TagRedShift(csvData [][]string, client redshiftiface.RedshiftAPI)
- func TagS3(csvData [][]string, client s3iface.S3API)
- func TagSecurityGroups(csvData [][]string, client ec2iface.EC2API)
- func WriteCsv(data [][]string, filename string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSession ¶
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 ¶
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 ¶
ParseEC2Tags parse output from getEC2Instances and return instances id and specified tags.
func ParseEcrRepositoriesTags ¶
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 ¶
ParseIamRolesTags parse output from getIamRoles and return roles and specified tags.
func ParseIamUserTags ¶
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 ¶
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 ¶
ParseS3Tags parse output from getBuckets and return instances id and specified tags.
func ParseSecurityGroupTags ¶
ParseSecurityGroupTags parse output from getSecurityGroups and return SG ids and specified tags.
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 ¶
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 TagEcrRepo ¶
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 ¶
TagIamRole tag iam user. Take as input data from csv file. Where first column is name
func TagIamUser ¶
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 TagRedShift ¶
func TagRedShift(csvData [][]string, client redshiftiface.RedshiftAPI)
TagRedShift tag rds instances. Take as input data from csv file. Where first column arn
func TagSecurityGroups ¶
TagSecurityGroups tag security groups. Take as input data from csv file. Where first column id
Types ¶
This section is empty.