washingtonpost / aws-tagger Goto Github PK
View Code? Open in Web Editor NEWAWS bulk tagging tool
License: MIT License
AWS bulk tagging tool
License: MIT License
Instead of specifying credentials in environment variables, the tool should accept a named profile, which Boto3 will use to look up the credentials in ~/.aws/credentials.
See: http://boto3.readthedocs.io/en/latest/guide/configuration.html#shared-credentials-file
»cat resources.csv
Id,Region,Business Unit,Project,Owner,ApplicationService,environment
i-11111111111111111,eu-west-1,Commercial-and-Marketing,Loyalty,,Container,
i-22222222222222222,eu-west-2,Commercial-and-Marketing,Loyalty,,Container,
i-3333333333333333,eu-west-3,Commercial-and-Marketing,Loyalty,,Container,
» aws-tagger --csv resources.csv
Traceback (most recent call last):
File "/usr/local/bin/aws-tagger", line 11, in
load_entry_point('aws-tagger==0.6.1', 'console_scripts', 'aws-tagger')()
File "/Library/Python/2.7/site-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/Library/Python/2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/Library/Python/2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Library/Python/2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/Library/Python/2.7/site-packages/tagger/cli.py", line 22, in cli
tagger.tag(csv)
File "/Library/Python/2.7/site-packages/tagger/tagger.py", line 151, in tag
self._tag_resource(tag_index, row)
File "/Library/Python/2.7/site-packages/tagger/tagger.py", line 161, in _tag_resource
resource_id = row[tag_index[self.resource_id_column]]
KeyError: 'Id'
Hi Team,
We have tagged our EC2 machines by aws tagger using CSV file and it worked fine.
But in the case of volumes attached to EC2 ,aws tagger have tagged few volumes but not all of them. Can we get any answers or solutions for this asap?
It is not working for Network Interfaces, EKS and ECS Clusters.
runfile('C:/Users/........)
aws-tagger --resource i-07a9d0e5 --tag "App:Foobar"
File "", line 1
aws-tagger --resource i-07a9d0e5 --tag "App:Foobar"
^
SyntaxError: invalid syntax
i cant find profile to set my account infomation
Hi there,
Would it be possible to add support for tagging lamba functions?
Hi guys, thanks for the wonderful tool. I've came across an issue while trying to tag elb/alb. I'm getting error saying ELB names should be less than 32 characters.
Maybe at the time of creating the script ELB were within 32 characters but since the the use of elbv2(alb/nlb) names are longer than 32 characters. It would be great if you can modify the script to support this. Thanks.
Hi,
It would be great of we can push tags to EC2 instances only and not include EBS volumes/snapshots. There are some tags I'd like to push to an EC2 instance only, like start/stop tags
Getting this error while using in mac book
I really like aws-tagger
and have enjoyed using it.
I'm working to apply cost allocation tags for my teams's AWS infrastructure. We use a wide variety of AWS resources, so if I use aws-tagger
, I'm planning to add support for 10-20 more AWS resource types.
I need to build out the ability to scan AWS resources that don't have a specific tag (eg, scan for non-free AWS resources where my-cost-allocation-tag
does not exist or is null). My end goal is to be able to tag AWS infrastructure and confirm I've cost allocated 100% of my teams's AWS spend. I believe this would be new functionality for aws-tagger
. Would this be a welcome addition to the package?
If so, happy to collaborate and make the modifications here. If not, I'm planning to fork the code and create a new package (and name it something besides aws-tagger
). Or maybe there are other alternatives besides these 2 outcomes.
Either way, thanks for open sourcing the tool!
CC/ @patrickbcullen
Hi there,
Would be great if snapshot tagging was supported as well.
It would be great if aws-tagger could also support tagging managed instances that are managed in Systems Manager Fleet Manager (formerly known as Managed Instances). Right now it looks like only regular EC2 instances are supported.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.