terraform-infra-as-code-coverage-badges icon indicating copy to clipboard operation
terraform-infra-as-code-coverage-badges copied to clipboard

Massive Refactor

Open kevinkjt2000 opened this issue 5 years ago • 1 comments

I noticed that generating the badges looked repetitive, so I have refactored that into its own function.

Additionally, I removed the default AWS_PROFILE variable. Having this makes this script impossible for me to run, because the AWS account I use has a multi-factor authenticated role that I have to assume. To do this I use aws sts and my rotating pin number to acquire a temoporary session token. Then, I export new AWS_* variables based on the sts output.

However, setting a profile is still possible. For example, AWS_PROFILE=default ./terraform-coverage.sh.

kevinkjt2000 avatar Oct 02 '19 16:10 kevinkjt2000

@chrisanthropic

kevinkjt2000 avatar Oct 03 '19 13:10 kevinkjt2000