pacbot icon indicating copy to clipboard operation
pacbot copied to clipboard

Tagging Compliance Documentation

Open jonshern opened this issue 8 years ago • 5 comments

Not sure where/how to set the tags that are checked for tagging compliance. It also seems like there are some key tags that pacbot uses in order to group resources. Application and Environment seem to be two of them. Would be good to document this process, also the resources that are created in the installer should be compliant out of the box. So they should have the key tags that Pacbot is looking in order to demonstrate tagging compliance

jonshern avatar Oct 29 '18 13:10 jonshern

@jonshern We recently did a POC on Pacbot and where able to get the tagging section working, although i do agree there needs to be more documentation in general around the tool but it is quite new still.

How we got it working was changing the mandatoryTags value here https://github.com/tmobile/pacbot/blob/e4795b49f5cbe385cd10d3dcb4bc094a1ede216d/api/pacman-api-config/src/main/resources/shared/api.yml#L74 rebuilding the config jar, pushing a new copy to the S3 bucket, and forcing a new deployment of the config service.

While this allowed us to see the 'Tagging' pane using our own tags it did not seem to fix some of the other spots where 'Application' and 'Environment' seem to be the default tags, such as looking at the Asset pane. (You also then need to use a tagging rule tied to the default tagging policy to have them show up correctly)

I'm sure there might be a better way to go about getting this working but this is how we did it in our quick POC.

jacob-kinzer avatar Oct 30 '18 11:10 jacob-kinzer

@jacob-kinzer Thanks for sharing your POC experiences, yes we need to set mandatoryTags to gauge compliance of Tagging Rules. Tagging Rule can be applied for all AWS taggable Resources taggable(EC2/Volumes/S3/RDS...etc).

In the first version PacBot we open sourced only few Rules and tagging is not part of the that list.

In our next release we will add rules and will give options to user for enable/disable rule and will come up with help documentation.

mean while if you want to play around with tagging. You can configure Tagging Rules from the admin page.

here are steps

  • Go to admin page and click on add rules

image

  • Select Managed Rules

  • Select Policy ID as PacMan_TaggingRule_version-1

  • Enter Rules Name (Ec2TaggingRule)

  • Select data source aws and TagetType ec2(As we are configuring EC2 Tagging, if you want to enable tagging for other resources follow the these same steps)

  • Enter Rule Frequency

  • Would you want to scan your rule against an asset group? give aws-all

RuleParameters ruleKey : check-for-missing-mandatory-tags splitterChar : , severity : high ruleCateogry : tagging mandatoryTags : Application,Environment,Stack,Role

After entering these values click on submit. Then Rule will be created Cloud watch and triggers immediately.

image

After first successful execution you should see EC2 Tagging compliance overview page image

As I mentioned earlier, follow above steps to configure other tagging rules(S3/RDS/..etc)

santhoshigorle avatar Oct 30 '18 13:10 santhoshigorle

@jonshern

Thanks for your feed back on "resources that are created in the installer should be compliant out of the box. So they should have the key tags that Pacbot is looking in order to demonstrate tagging compliancer should be compliant out of the box. So they should have the key tags that Pacbot is looking in order to demonstrate tagging compliance"

In PacBot 1.1 we will be taking care of the tagging of resources that are created by the installer.

Let us know Tagging Rule configuration successful with the above steps??

santhoshigorle avatar Nov 01 '18 05:11 santhoshigorle

i am not able to select Data Source and/or Target Type - can somebody help me with that?

marcschroeter avatar Jan 07 '19 15:01 marcschroeter

@marcschroeter As part of release 1.1 this should be fixed.

santhoshigorle avatar Feb 04 '19 04:02 santhoshigorle