Skip to content

Commit

Permalink
remove inaccurate blurb about imds region (#2718)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucix-aws authored Jul 18, 2024
1 parent f460186 commit c448d43
Show file tree
Hide file tree
Showing 45 changed files with 92 additions and 160 deletions.
20 changes: 1 addition & 19 deletions content/en/docs/sdk-utilities/ec2-imds.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,6 @@ fmt.Printf("local-ip: %v\n", localip)
```

For a list of all metadata categories, see
[Instance Metadata Categories](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-categories.html#dynamic-data-categories)
[Instance Metadata Categories](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-categories.html)
in the {{% alias service="EC2" %}} User Guide.

### Retrieving an Instance's Region

There's no instance metadata category that returns only the Region of an
instance. Instead, use the included `Region` method to easily return
an instance's Region.

```go
response, err := client.GetRegion(context.TODO(), &imds.GetRegionInput{})
if err != nil {
log.Printf("Unable to retrieve the region from the EC2 instance %v\n", err)
}

fmt.Printf("region: %v\n", response.Region)
```

For more information about the EC2 metadata utility, see the [feature/ec2/imds]({{% apiref "feature/ec2/imds" %}}) package in the
{{% alias sdk-api %}}.

2 changes: 1 addition & 1 deletion docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/cloud9-go/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -127,7 +127,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/code-examples/cloudwatch/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -123,7 +123,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/code-examples/dynamodb/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -123,7 +123,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/code-examples/ec2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -123,7 +123,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/code-examples/iam/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -123,7 +123,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/code-examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -123,7 +123,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/code-examples/kms/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -123,7 +123,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/code-examples/s3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -123,7 +123,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/code-examples/sns/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -123,7 +123,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/code-examples/sqs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -123,7 +123,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/code-examples/ssm/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -123,7 +123,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/code-examples/sts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -123,7 +123,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/configuring-sdk/auth/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -126,7 +126,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/configuring-sdk/custom-http/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -126,7 +126,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/configuring-sdk/endpoints/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -126,7 +126,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/configuring-sdk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -123,7 +123,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/configuring-sdk/logging/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -126,7 +126,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
10 changes: 5 additions & 5 deletions docs/docs/configuring-sdk/retries-timeouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
<meta property="og:type" content="article" />
<meta property="og:url" content="https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/retries-timeouts/" /><meta property="article:section" content="docs" />

<meta property="article:modified_time" content="2022-03-07T15:24:12-08:00" />
<meta property="article:modified_time" content="2024-03-19T10:56:16-04:00" />
<meta itemprop="name" content="Retries and Timeouts">
<meta itemprop="description" content="The AWS SDK for Go V2 enables you to configure the retry behavior of requests to HTTP services. By default, service clients use retry.Standard as their default retryer. If the default configuration or behavior does not meet your application requirements, you can adjust the retryer configuration or provide your own retryer implementation.
The AWS SDK for Go V2 provides a aws.Retryer interface that defines the set of methods required by a retry implementation to implement.">
<meta itemprop="dateModified" content="2022-03-07T15:24:12-08:00" />
<meta itemprop="dateModified" content="2024-03-19T10:56:16-04:00" />
<meta itemprop="wordCount" content="1093">
<meta itemprop="keywords" content="" /><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Retries and Timeouts"/>
Expand Down Expand Up @@ -108,7 +108,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -130,7 +130,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down Expand Up @@ -726,7 +726,7 @@ <h3 id="setting-a-timeout">Setting a timeout</h3>


<div class="text-muted mt-5 pt-3 border-top">
Last modified March 7, 2022: <a href="https://github.com/aws/aws-sdk-go-v2/commit/7f41fd42be9011457b5afa665bac6d371f216b42"> Fix Retry Documentation Typo (#1609) (7f41fd42be)</a>
Last modified March 19, 2024: <a href="https://github.com/aws/aws-sdk-go-v2/commit/dded552360fab3f12ed4df071fa94f504ef878b8">add entry for ratelimit (#2565) (dded552360)</a>
</div>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/faq/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand All @@ -122,7 +122,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.d8f87655e0fa72213f78a940133fec6c.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.9f33279f24e0567986b8fc9db212092b.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down
Loading

0 comments on commit c448d43

Please sign in to comment.