From 1eeb2a66ad263e5a412419a4ec61b0b761aae17a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=98=D0=B0=D0=BD=20=D0=93=D0=B5=D0=BE?= =?UTF-8?q?=D1=80=D0=B3=D0=B8=D0=B5=D0=B2=D1=81=D0=BA=D0=B8?= Date: Tue, 31 Mar 2020 23:10:22 +0200 Subject: [PATCH] add timestamp to the parameter description --- manager.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manager.go b/manager.go index 8eef4d4..c2a035d 100644 --- a/manager.go +++ b/manager.go @@ -163,11 +163,12 @@ func (m *Manager) WriteCredentialsParameterStore(creds *sts.Credentials, path st func (m *Manager) writeSecretParameterStore(name, secret string) error { var err error + timestamp := time.Now().Format(time.RFC3339) _, err = m.ssmClient.PutParameter(&ssm.PutParameterInput{ Name: aws.String(name), Value: aws.String(secret), Type: aws.String("SecureString"), - Description: aws.String("Parameter managed by concourse-sts-lambda"), + Description: aws.String(fmt.Sprintf("STS Credentials for Concourse. Last updated: %s", timestamp)), Overwrite: aws.Bool(true), })