Skip to content

This is code to update tags in production resources so that Vanta takes them off of the " Inventory items have owners" list.

License

Notifications You must be signed in to change notification settings

QbDVision-Inc/Create-Vanta-Tags

Repository files navigation

Purpose

The purpose of this repo is to provide a few simple utilities to quickly update Vanta tags for AWS resources in your production accounts.

This program currently only updates the tags where they don't exist. It will not update existing tags (but PRs are welcome).

Installation

Ensure that you have Node 14+ installed. Download this repo and then run npm install:

git clone https://github.com/QbDVision-Inc/Create-Vanta-Tags.git
npm install

Next, copy vantaTags-template.js and update it with whatever default values you want.

copy vantaTags-template.js vantaTags.js
vim vantaTags.js

Update your S3 Resources

See the options available:

node updateTags.js --help

See the buckets that aren't tagged in eu-central-1. This will also warn you about buckets in other regions that aren't covered.

node updateTags.js --service S3 --region eu-central-1

See the buckets in eu-central-1 that include the text "codepipeline" (but don't have Vanta tags). This will also warn you about buckets in other regions that match this text but wouldn't be updated.

node updateTags.js --service S3 --region eu-central-1 --include "codepipeline"

Add a description for these buckets (but stil execute as a dry run).

node updateTags.js --service S3 --region eu-central-1 \
  --description "Used for storing artifacts to update our build system." \
  --include codepipeline

Update the S3 buckets that match codepipeline with the new tags.

node updateTags.js --service S3 --region eu-central-1 \
  --description "Used for storing artifacts to update our build system." \
  --include codepipeline
  --no-dry-run

Update your SQS Resources

See the queues in eu-central-1 that include the text "codepipeline" (but don't have Vanta tags).

node updateTags.js --service S3 --region eu-central-1 --include "codepipeline"

Update the tags on SQS queues that match codepipeline with the new tags.

node updateTags.js --service S3 --region eu-central-1 \
  --description "Used for storing artifacts to update our build system." \
  --include codepipeline
  --no-dry-run

NOTE: You currently have to run this utility for each region separately. Again, PRs are welcome.

About

This is code to update tags in production resources so that Vanta takes them off of the " Inventory items have owners" list.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published