Skip to content

Instantly share code, notes, and snippets.

@ilyash-b
Created May 25, 2018 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilyash-b/75eb6d2464ac315ee99f2dfa1ad3bbf2 to your computer and use it in GitHub Desktop.
Save ilyash-b/75eb6d2464ac315ee99f2dfa1ad3bbf2 to your computer and use it in GitHub Desktop.
AWS tags operations
# Format: API-commands-for-manipulating-tags SPACE services,with,that,set,of,operations
# In the end of the file there is a script that generated the output
AddTags-DeleteTags-DescribeTags machinelearning
AddTags-DeleteTags-ListTags sagemaker
AddTags-DescribeTags-RemoveTags elb,elbv2
AddTags-ListTags-RemoveTags cloudtrail,es
AddTags-RemoveTags emr,datapipeline
AddTagsToCertificate-ListTagsForCertificate-RemoveTagsFromCertificate acm
AddTagsToOnPremisesInstances-RemoveTagsFromOnPremisesInstances codedeploy
AddTagsToResource-ListTagsForResource-RemoveTagsFromResource ssm,cloudhsm,ds,storagegateway,dms,elasticache,rds
AddTagsToStream-ListTagsForStream-RemoveTagsFromStream kinesis
AddTagsToVault-ListTagsForVault-RemoveTagsFromVault glacier
ChangeTagsForResource-ListTagsForResource-ListTagsForResources route53
CreateDistributionWithTags-CreateStreamingDistributionWithTags-ListTagsForResource cloudfront
CreateOrUpdateTags-DeleteTags-DescribeTags autoscaling
CreateTags-DeleteTags-DescribeTags discovery,workspaces,redshift,efs,ec2
DeleteTagsForDomain-ListTagsForDomain-UpdateTagsForDomain route53domains
DescribeTags directconnect
GetTags resource-groups,ce,apigateway
ListQueueTags sqs
ListResourceTags kms
ListTags acm-pca,opsworks,cloudhsmv2,lambda,dax,alexaforbusiness
ListTagsForDeliveryStream firehose
ListTagsForProject codestar
ListTagsForResource clouddirectory,appstream
ListTagsForResource-SetTagsForResource inspector
ListTagsForResource-UpdateTagsForResource elasticbeanstalk
ListTagsForStream kinesisvideo
ListTagsLogGroup logs
ListTagsOfResource dynamodb
### #!/usr/bin/env ngs
###
### {
### D='PATH/TO/site-packages/botocore/data'
### ops_to_services = {}
### dir(D, true).filter(Dir).each(F(service_dir) {
### latest_service_dir = dir(service_dir).max()
### f = File(latest_service_dir / "service-2.json")
### if f {
### svc = service_dir.path.split('/')[-1]
### ops = fetch(f).operations.keys().filter(/Tags/).sort().join('-')
### if ops {
### ops_to_services.dflt(ops, []).push(svc)
### }
### }
### })
### ops_to_services.sort().map(F(k, v) "${k} ${v.join(',')}").each(echo)
### }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment