diff --git a/CHANGELOG.md b/CHANGELOG.md index 528a5c1fe..869bd94f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Unreleased +## Enhancements +* Updates go-tfe client to export the instance name using `AppName()` + # v1.44.0 ## Enhancements diff --git a/tfe.go b/tfe.go index b243c10a9..d849f59bc 100644 --- a/tfe.go +++ b/tfe.go @@ -487,6 +487,11 @@ func NewClient(cfg *Config) (*Client, error) { return client, nil } +// AppName returns the name of the instance. +func (c Client) AppName() string { + return c.appName +} + // IsCloud returns true if the client is configured against a Terraform Cloud // instance. //