Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 99de7d0

Browse files
Merge pull request #231 from secrethub/feature/aws-service-id-output
Print service ID when creating AWS service
2 parents 9922a49 + d1dc062 commit 99de7d0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internals/secrethub/service_aws_init.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ func (cmd *ServiceAWSInitCommand) Run() error {
149149
}
150150
}
151151

152-
fmt.Fprintf(cmd.io.Stdout(), "Successfully created the service account. Any host that assumes the IAM role %s can now automatically authenticate to SecretHub and fetch the secrets the service has been given access to.\n", roleNameFromRole(cmd.role))
152+
fmt.Fprintln(cmd.io.Stdout(), "Successfully created a new service account with ID: "+service.ServiceID)
153+
fmt.Fprintf(cmd.io.Stdout(), "Any host that assumes the IAM role %s can now automatically authenticate to SecretHub and fetch the secrets the service has been given access to.\n", roleNameFromRole(cmd.role))
153154

154155
return nil
155156
}

0 commit comments

Comments
 (0)