tailwarden / komiser

Open-source cloud-environment inspector. Supporting AWS, GCP, Azure, and more! Your cloud resources will have nowhere to hide!
https://komiser.io
Other
3.92k stars 428 forks source link

Support AWS CodePipelines #1176

Open jakepage91 opened 9 months ago

jakepage91 commented 9 months ago

Describe the solution you'd like Collect AWS CodePipelines Additional context To get an idea of how to implement the collector, take the EC2 instances resource as inspiration.

Note: only support the AWS resource, please don't add any cost calculation logic

jakepage91 commented 9 months ago

Hey there @subhajit20. This could be a great one for you to tackle. Here is a video that helps you get started https://www.youtube.com/watch?v=Vn5uc2elcVg

subhajit20 commented 9 months ago

Hey @jakepage91 , thanks. Can you assign this to me?

jakepage91 commented 9 months ago

All yours!

subhajit20 commented 9 months ago

hey @jakepage91 , I have seen the tutorial you mentioned... have set up the project locally but in this case, how do I know which method to use for implementing codePipelines? There are multiple methods available in the documentation

bishal7679 commented 9 months ago

hey @jakepage91 , I have seen the tutorial you mentioned... have set up the project locally but in this case, how do I know which method to use for implementing codePipelines? There are multiple methods available in the documentation

You can take a look for ec2 instance.go file for which function to use and as we are currently focusing for service level cost rather resource level so it'd be a good start to only fetch the service from regions

jakepage91 commented 9 months ago

Yeah I haven't gone through the available methods for AWS Code Pipelines but the idea is to simply list each pipeline resource (forget about cost at the moment) and make sure it shows up in the resource inventory

subhajit20 commented 9 months ago

Okay, @jakepage91 one more thing is I have added the config.toml file to the project but do not understand how to generate the credential file ? this i s why the cloud account could not be found. Can you help out ? 3000-subhajit20-komiser-ob5wnr61k30 ws-us106 gitpod io_dashboard_ - Google Chrome 11-11-2023 13_17_55

bishal7679 commented 9 months ago

Okay, @jakepage91 one more thing is I have added the config.toml file to the project but do not understand how to generate the credential file ? this i s why the cloud account could not be found. Can you help out ? 3000-subhajit20-komiser-ob5wnr61k30 ws-us106 gitpod io_dashboard_ - Google Chrome 11-11-2023 13_17_55

Hey @subhajit20 You can set your credentials by AWS Cli aws configure command Komiser will automatically fetch it when you mention source="ENVIRONMENT_VARIABLES" in config.toml