Skip to content

Commit

Permalink
update sso credentials documentation to use token provider configurat…
Browse files Browse the repository at this point in the history
…ion (#2117)

* update sso credentials documentation to use token provider configuration
* remove conflicting coreutils install for container preview
  • Loading branch information
aajtodd authored May 9, 2023
1 parent 01cae8c commit 3f83cac
Show file tree
Hide file tree
Showing 44 changed files with 490 additions and 430 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ARG HUGO_DOWNLOAD_SHA256=8c3adf2ace1604468325a6dd094bcc41c141c4a28a0c1ebbeb0022e

ARG GO_VERSION=go1.19

RUN yum update -y && yum install -y tar xz gzip git coreutils make golang
RUN yum update -y && yum install -y tar xz gzip git make golang

RUN curl -L -o nodejs.tar.xz ${NODEJS_LTS_DOWNLOAD_URL} && \
echo "${NODEJS_LTS_DOWNLOAD_SHA256} nodejs.tar.xz" | sha256sum -c -
Expand Down
4 changes: 4 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ weight = 1
style = "tango"
# Uncomment if you want your chosen highlight style used for code blocks without a specified language
# guessSyntax = "true"
[markup.tableOfContents]
endLevel = 3
ordered = false
startLevel = 1

# Everything below this are Site Params

Expand Down
14 changes: 10 additions & 4 deletions content/en/docs/configuring-sdk/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,18 +374,24 @@ If your SSO credentials expire, you must explicitly renew them by logging in to
For example, you can create a profile, `dev-profile`, authenticate and authorize that profile using the
{{% alias service=CLI %}}, and configure your application as shown below.

1. First create the `dev-profile`
1. First create the `profile` and `sso-session`

```
[profile dev-profile]
sso_start_url = https://company-sso-portal.awsapps.com/start
sso_region = us-west-2
sso_session = dev-session
sso_account_id = 012345678901
sso_role_name = Developer
region = us-east-1
[sso-session dev-session]
sso_region = us-west-2
sso_start_url = https://company-sso-portal.awsapps.com/start
sso_registration_scopes = sso:account:access
```
2. Login using the {{% alias service=CLI %}} to authenticate and authorize the SSO profile.
```
$ aws sso login --profile dev-profile
$ aws --profile dev-profile sso login
Attempting to automatically open the SSO authorization page in your default browser.
If the browser does not open or you wish to use a different device to authorize this request, open the following URL:
Expand Down
7 changes: 3 additions & 4 deletions docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="generator" content="Hugo 0.101.0" />
<meta name="generator" content="Hugo 0.111.3">
<meta name="robots" content="index, follow">


Expand All @@ -24,7 +24,6 @@
<meta property="og:description" content="The AWS SDK for Go V2 provides APIs and utilities that developers can use to build Go applications that use AWS services." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://aws.github.io/aws-sdk-go-v2/404.html" /><meta property="og:site_name" content="AWS SDK for Go V2" />

<meta itemprop="name" content="404 Page not found">
<meta itemprop="description" content="The AWS SDK for Go V2 provides APIs and utilities that developers can use to build Go applications that use AWS services."><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="404 Page not found"/>
Expand Down Expand Up @@ -100,7 +99,7 @@
aria-label="Search this site…"
autocomplete="off"

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.b72800ff9f162da780238d86bb1fe844.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.6031b00f9c477f93ed55541508b521cb.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down Expand Up @@ -158,7 +157,7 @@ <h1 id="title">Not found</h1>

</div>
<div class="col-12 col-sm-4 text-center py-2 order-sm-2">
<small class="text-white">&copy; 2022 Amazon Web Services, Inc. or its affiliates. All Rights Reserved</small>
<small class="text-white">&copy; 2023 Amazon Web Services, Inc. or its affiliates. All Rights Reserved</small>



Expand Down
25 changes: 14 additions & 11 deletions docs/docs/cloud9-go/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="generator" content="Hugo 0.101.0" />
<meta name="generator" content="Hugo 0.111.3">
<meta name="robots" content="index, follow">


Expand All @@ -27,7 +27,6 @@
<meta property="og:url" content="https://aws.github.io/aws-sdk-go-v2/docs/cloud9-go/" /><meta property="article:section" content="docs" />
<meta property="article:published_time" content="2020-11-12T00:00:00+00:00" />
<meta property="article:modified_time" content="2021-04-23T01:04:37+02:00" /><meta property="og:site_name" content="AWS SDK for Go V2" />

<meta itemprop="name" content="Using AWS Cloud9 with the AWS SDK for Go V2">
<meta itemprop="description" content="You can use AWS Cloud9 with the AWS SDK for Go V2 to write and run your Go code using just a browser. AWS Cloud9 includes tools such as a code editor and terminal. The AWS Cloud9 IDE is cloud based, so you can work on your projects from your office, home, or anywhere using an internet-connected machine. For general information about AWS Cloud9, see the AWS Cloud9 User Guide."><meta itemprop="datePublished" content="2020-11-12T00:00:00+00:00" />
<meta itemprop="dateModified" content="2021-04-23T01:04:37+02:00" />
Expand Down Expand Up @@ -106,7 +105,7 @@
aria-label="Search this site…"
autocomplete="off"

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

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.b72800ff9f162da780238d86bb1fe844.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.6031b00f9c477f93ed55541508b521cb.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down Expand Up @@ -421,15 +420,19 @@

<div class="td-toc"><nav id="TableOfContents">
<ul>
<li><a href="#set-up-your-aws-account-to-use-aws-cloud9">Set up Your AWS Account to Use AWS Cloud9</a></li>
<li><a href="#set-up-your-aws-cloud9-development-environment">Set up Your AWS Cloud9 Development Environment</a></li>
<li><a href="#set-up-the-aws-sdk-for-go-v2">Set up the AWS SDK for Go V2</a></li>
<li><a href="#DownloadExample">Download Example Code</a>
<li>
<ul>
<li><a href="#run-example-code">Run Example Code</a></li>
<li><a href="#set-up-your-aws-account-to-use-aws-cloud9">Set up Your AWS Account to Use AWS Cloud9</a></li>
<li><a href="#set-up-your-aws-cloud9-development-environment">Set up Your AWS Cloud9 Development Environment</a></li>
<li><a href="#set-up-the-aws-sdk-for-go-v2">Set up the AWS SDK for Go V2</a></li>
<li><a href="#DownloadExample">Download Example Code</a>
<ul>
<li><a href="#run-example-code">Run Example Code</a></li>
</ul>
</li>
<li><a href="#InstallUpgradeGo">Installing/Upgrading AWS Cloud9 Go Version</a></li>
</ul>
</li>
<li><a href="#InstallUpgradeGo">Installing/Upgrading AWS Cloud9 Go Version</a></li>
</ul>
</nav></div>

Expand Down Expand Up @@ -612,7 +615,7 @@ <h2 id="InstallUpgradeGo">Installing/Upgrading AWS Cloud9 Go Version</h2>

</div>
<div class="col-12 col-sm-4 text-center py-2 order-sm-2">
<small class="text-white">&copy; 2022 Amazon Web Services, Inc. or its affiliates. All Rights Reserved</small>
<small class="text-white">&copy; 2023 Amazon Web Services, Inc. or its affiliates. All Rights Reserved</small>



Expand Down
9 changes: 4 additions & 5 deletions docs/docs/code-examples/cloudwatch/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="generator" content="Hugo 0.101.0" />
<meta name="generator" content="Hugo 0.111.3">
<link rel="alternate" type="application/rss&#43;xml" href="https://aws.github.io/aws-sdk-go-v2/docs/code-examples/cloudwatch/index.xml">
<meta name="robots" content="index, follow">

Expand All @@ -26,7 +26,6 @@
<meta property="og:description" content="The AWS SDK for Go V2 provides APIs and utilities that developers can use to build Go applications that use AWS services." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://aws.github.io/aws-sdk-go-v2/docs/code-examples/cloudwatch/" /><meta property="og:site_name" content="AWS SDK for Go V2" />

<meta itemprop="name" content="Amazon CloudWatch Examples">
<meta itemprop="description" content="The AWS SDK for Go V2 provides APIs and utilities that developers can use to build Go applications that use AWS services."><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Amazon CloudWatch Examples"/>
Expand Down Expand Up @@ -102,7 +101,7 @@
aria-label="Search this site…"
autocomplete="off"

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

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.b72800ff9f162da780238d86bb1fe844.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.6031b00f9c477f93ed55541508b521cb.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down Expand Up @@ -588,7 +587,7 @@ <h5>

</div>
<div class="col-12 col-sm-4 text-center py-2 order-sm-2">
<small class="text-white">&copy; 2022 Amazon Web Services, Inc. or its affiliates. All Rights Reserved</small>
<small class="text-white">&copy; 2023 Amazon Web Services, Inc. or its affiliates. All Rights Reserved</small>



Expand Down
9 changes: 4 additions & 5 deletions docs/docs/code-examples/dynamodb/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="generator" content="Hugo 0.101.0" />
<meta name="generator" content="Hugo 0.111.3">
<link rel="alternate" type="application/rss&#43;xml" href="https://aws.github.io/aws-sdk-go-v2/docs/code-examples/dynamodb/index.xml">
<meta name="robots" content="index, follow">

Expand All @@ -26,7 +26,6 @@
<meta property="og:description" content="The AWS SDK for Go V2 provides APIs and utilities that developers can use to build Go applications that use AWS services." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://aws.github.io/aws-sdk-go-v2/docs/code-examples/dynamodb/" /><meta property="og:site_name" content="AWS SDK for Go V2" />

<meta itemprop="name" content="Amazon DynamoDB Examples">
<meta itemprop="description" content="The AWS SDK for Go V2 provides APIs and utilities that developers can use to build Go applications that use AWS services."><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Amazon DynamoDB Examples"/>
Expand Down Expand Up @@ -102,7 +101,7 @@
aria-label="Search this site…"
autocomplete="off"

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

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.b72800ff9f162da780238d86bb1fe844.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.6031b00f9c477f93ed55541508b521cb.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down Expand Up @@ -556,7 +555,7 @@ <h5>

</div>
<div class="col-12 col-sm-4 text-center py-2 order-sm-2">
<small class="text-white">&copy; 2022 Amazon Web Services, Inc. or its affiliates. All Rights Reserved</small>
<small class="text-white">&copy; 2023 Amazon Web Services, Inc. or its affiliates. All Rights Reserved</small>



Expand Down
9 changes: 4 additions & 5 deletions docs/docs/code-examples/ec2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="generator" content="Hugo 0.101.0" />
<meta name="generator" content="Hugo 0.111.3">
<link rel="alternate" type="application/rss&#43;xml" href="https://aws.github.io/aws-sdk-go-v2/docs/code-examples/ec2/index.xml">
<meta name="robots" content="index, follow">

Expand All @@ -26,7 +26,6 @@
<meta property="og:description" content="The AWS SDK for Go V2 provides APIs and utilities that developers can use to build Go applications that use AWS services." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://aws.github.io/aws-sdk-go-v2/docs/code-examples/ec2/" /><meta property="og:site_name" content="AWS SDK for Go V2" />

<meta itemprop="name" content="Amazon EC2 Examples">
<meta itemprop="description" content="The AWS SDK for Go V2 provides APIs and utilities that developers can use to build Go applications that use AWS services."><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Amazon EC2 Examples"/>
Expand Down Expand Up @@ -102,7 +101,7 @@
aria-label="Search this site…"
autocomplete="off"

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

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.b72800ff9f162da780238d86bb1fe844.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.6031b00f9c477f93ed55541508b521cb.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down Expand Up @@ -604,7 +603,7 @@ <h5>

</div>
<div class="col-12 col-sm-4 text-center py-2 order-sm-2">
<small class="text-white">&copy; 2022 Amazon Web Services, Inc. or its affiliates. All Rights Reserved</small>
<small class="text-white">&copy; 2023 Amazon Web Services, Inc. or its affiliates. All Rights Reserved</small>



Expand Down
9 changes: 4 additions & 5 deletions docs/docs/code-examples/iam/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="generator" content="Hugo 0.101.0" />
<meta name="generator" content="Hugo 0.111.3">
<link rel="alternate" type="application/rss&#43;xml" href="https://aws.github.io/aws-sdk-go-v2/docs/code-examples/iam/index.xml">
<meta name="robots" content="index, follow">

Expand All @@ -26,7 +26,6 @@
<meta property="og:description" content="The AWS SDK for Go V2 provides APIs and utilities that developers can use to build Go applications that use AWS services." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://aws.github.io/aws-sdk-go-v2/docs/code-examples/iam/" /><meta property="og:site_name" content="AWS SDK for Go V2" />

<meta itemprop="name" content="IAM Examples">
<meta itemprop="description" content="The AWS SDK for Go V2 provides APIs and utilities that developers can use to build Go applications that use AWS services."><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="IAM Examples"/>
Expand Down Expand Up @@ -102,7 +101,7 @@
aria-label="Search this site…"
autocomplete="off"

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

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.b72800ff9f162da780238d86bb1fe844.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.6031b00f9c477f93ed55541508b521cb.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down Expand Up @@ -708,7 +707,7 @@ <h5>

</div>
<div class="col-12 col-sm-4 text-center py-2 order-sm-2">
<small class="text-white">&copy; 2022 Amazon Web Services, Inc. or its affiliates. All Rights Reserved</small>
<small class="text-white">&copy; 2023 Amazon Web Services, Inc. or its affiliates. All Rights Reserved</small>



Expand Down
11 changes: 5 additions & 6 deletions docs/docs/code-examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="generator" content="Hugo 0.101.0" />
<meta name="generator" content="Hugo 0.111.3">
<link rel="alternate" type="application/rss&#43;xml" href="https://aws.github.io/aws-sdk-go-v2/docs/code-examples/index.xml">
<meta name="robots" content="index, follow">

Expand All @@ -26,7 +26,6 @@
<meta property="og:description" content="The AWS SDK for Go V2 provides APIs and utilities that developers can use to build Go applications that use AWS services." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://aws.github.io/aws-sdk-go-v2/docs/code-examples/" /><meta property="og:site_name" content="AWS SDK for Go V2" />

<meta itemprop="name" content="Code Examples">
<meta itemprop="description" content="The AWS SDK for Go V2 provides APIs and utilities that developers can use to build Go applications that use AWS services."><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Code Examples"/>
Expand Down Expand Up @@ -102,7 +101,7 @@
aria-label="Search this site…"
autocomplete="off"

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

data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.b72800ff9f162da780238d86bb1fe844.json"
data-offline-search-index-json-src="/aws-sdk-go-v2/offline-search-index.6031b00f9c477f93ed55541508b521cb.json"
data-offline-search-base-href="/"
data-offline-search-max-results="10"
>
Expand Down Expand Up @@ -579,7 +578,7 @@ <h5>


<div class="text-muted mt-5 pt-3 border-top">
Last modified January 14, 2021: <a href="https://github.com/aws/aws-sdk-go-v2/commit/6b77d0a0af50a1fdb5a265b225530fc50386a068">Added code examples from AWS SDK docs repo (#1015) (6b77d0a)</a>
Last modified August 10, 2022: <a href="https://github.com/aws/aws-sdk-go-v2/commit/36ceefc1bbb79201f73b2757f24ccdf5faff71fc">Developer Guide Updates (#1798) (36ceefc)</a>
</div>

</div>
Expand Down Expand Up @@ -626,7 +625,7 @@ <h5>

</div>
<div class="col-12 col-sm-4 text-center py-2 order-sm-2">
<small class="text-white">&copy; 2022 Amazon Web Services, Inc. or its affiliates. All Rights Reserved</small>
<small class="text-white">&copy; 2023 Amazon Web Services, Inc. or its affiliates. All Rights Reserved</small>



Expand Down
Loading

0 comments on commit 3f83cac

Please sign in to comment.