Sfoglia il codice sorgente

Merge pull request #673 from mdr-engineering/feature/ftd_MSOCI-2190_UpdateSESUserKeys

Rotates SES User Key; Bugfix for Credential Report
Frederick Damstra 3 anni fa
parent
commit
df5ec864b7

+ 2 - 4
bin/credential-reports.sh

@@ -53,10 +53,8 @@ for i in $PROFILES; do
 	echo "======================================================================================"
 	export AWS_PROFILE=$i 
 	
-	set +e
 	${AWS} sts get-caller-identity > /dev/null 2>&1
 	RC=$?
-	set -e
 
 	if [[ $RC -eq 0 ]]; then
 		echo "GetCallerIdentity (AssumeRole Test) for $i OK"
@@ -70,8 +68,8 @@ for i in $PROFILES; do
 done
 
 echo Combining
-(cat *.tmp | head -1; cat *.tmp | grep -v 'user,arn,user_creation_time' | sort -u) > combined.tmp2
+{ cat *.tmp | head -1; cat *.tmp | grep -v 'user,arn,user_creation_time' | sort -u; } > combined.tmp2
 # Only the columsn we want. Since format is likely to change, this may be a bad idea
 echo cutting
-cut -d, -f1,2,5,6,9,10,11,14,15,16,19,20,21,22 combined.tmp2 > combined.csv
+cut -d, -f1,2,5,6,8,9,10,11,14,15,16,19,20,21,22 combined.tmp2 > combined.csv
 rm -f *.tmp *.tmp2

+ 1 - 1
prod/aws-us-gov/mdr-prod-c2/090-instance-mailrelay/terragrunt.hcl

@@ -13,7 +13,7 @@ locals {
 # working directory, into a temporary folder, and execute your Terraform commands in that folder.
 terraform {
   # Double slash is intentional and required to show root of modules
-  source = "git@github.xdr.accenturefederalcyber.com:mdr-engineering/xdr-terraform-modules.git//base/mailrelay?ref=v4.3.9"
+  source = "git@github.xdr.accenturefederalcyber.com:mdr-engineering/xdr-terraform-modules.git//base/mailrelay?ref=v4.3.11"
 }
 
 dependency "vpc-system-services" {

+ 1 - 1
test/aws-us-gov/mdr-test-c2/090-instance-mailrelay/terragrunt.hcl

@@ -13,7 +13,7 @@ locals {
 # working directory, into a temporary folder, and execute your Terraform commands in that folder.
 terraform {
   # Double slash is intentional and required to show root of modules
-  source = "git@github.xdr.accenturefederalcyber.com:mdr-engineering/xdr-terraform-modules.git//base/mailrelay?ref=v4.3.9"
+  source = "git@github.xdr.accenturefederalcyber.com:mdr-engineering/xdr-terraform-modules.git//base/mailrelay?ref=v4.3.11"
 }
 
 dependency "vpc-system-services" {