Skip to content

Commit

Permalink
Merge pull request #639 from hashicorp/release-2.0.0-beta35
Browse files Browse the repository at this point in the history
Prepare release `v2.0.0-beta.35`
  • Loading branch information
jar-b authored Sep 5, 2023
2 parents 95ea2bd + 609ac43 commit 192704b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
<!-- markdownlint-disable single-title -->
# v2.0.0 (Unreleased)

# v2.0.0-beta.35 (2023-09-05)

ENHANCEMENTS

* Adds `AllowedAccountIds` and `ForbiddenAccountIds` fields and a `VerifyAccountIDAllowed` method to `Config` ([#638](https://github.com/hashicorp/aws-sdk-go-base/pull/638))
* Adds `tfawserr.ErrHTTPStatusCodeEquals` ([#642](https://github.com/hashicorp/aws-sdk-go-base/pull/642))

# v2.0.0-beta.34 (2023-08-17)

BREAKING CHANGES
Expand Down
3 changes: 3 additions & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ func (c Config) ResolveSharedCredentialsFiles() ([]string, error) {

// VerifyAccountIDAllowed verifies an account ID is not explicitly forbidden
// or omitted from an allow list, if configured.
//
// If the AllowedAccountIds and ForbiddenAccountIds fields are both empty, this
// function will return nil.
func (c Config) VerifyAccountIDAllowed(accountID string) error {
if len(c.ForbiddenAccountIds) > 0 {
for _, forbiddenAccountID := range c.ForbiddenAccountIds {
Expand Down

0 comments on commit 192704b

Please sign in to comment.