diff --git a/docs/index.md b/docs/index.md index 3782d9bb5..e8e4407b4 100644 --- a/docs/index.md +++ b/docs/index.md @@ -256,15 +256,15 @@ provider "aws" { // Optional. if you want to assume role to multiple account and fetch data from them accounts "" { // Optional. Role ARN we want to assume when accessing this account - role_arn = + role_arn = "" // Optional. Local Profile is the named profile in your shared configuration file (usually `~/.aws/config`) that you want to use for this specific account - local_profile = " + local_profile = "" // Optional. Specify the Role Session name role_session_name = "" } accounts "" { // Optional. Role ARN we want to assume when accessing this account - role_arn = + role_arn = "" } } diff --git a/resources/services/s3/buckets.go b/resources/services/s3/buckets.go index d5b68c3e4..57d8971bb 100644 --- a/resources/services/s3/buckets.go +++ b/resources/services/s3/buckets.go @@ -531,6 +531,9 @@ func resolveS3BucketsAttributes(ctx context.Context, meta schema.ClientMeta, res output, err := mgr.GetBucketRegion(ctx, *resource.Name) if err != nil { + if c.IsNotFoundError(err) { + return nil + } return diag.WrapError(err) } // This is a weird corner case by AWS API https://github.com/aws/aws-sdk-net/issues/323#issuecomment-196584538