From 0f319fde08cd6ba116925fb13289bab431458bc0 Mon Sep 17 00:00:00 2001 From: Chris Bednarski Date: Thu, 10 Mar 2016 16:52:16 -0800 Subject: [PATCH] Add debug logging for the credentials used for S3 in amazon-import --- post-processor/amazon-import/post-processor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/post-processor/amazon-import/post-processor.go b/post-processor/amazon-import/post-processor.go index 3e13212f7..7176c28e5 100644 --- a/post-processor/amazon-import/post-processor.go +++ b/post-processor/amazon-import/post-processor.go @@ -11,8 +11,6 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" "github.com/aws/aws-sdk-go/service/s3" "github.com/aws/aws-sdk-go/service/s3/s3manager" - // This is bad, it should be pulled out into a common folder across - // both builders and post-processors awscommon "github.com/mitchellh/packer/builder/amazon/common" "github.com/mitchellh/packer/common" "github.com/mitchellh/packer/helper/config" @@ -89,6 +87,7 @@ func (p *PostProcessor) Configure(raws ...interface{}) error { return errs } + log.Println(common.ScrubConfig(p.config, p.config.AccessKey, p.config.SecretKey)) return nil }