From 13aa5c1017ac9b3ea87bcb7b048f62f8618e3142 Mon Sep 17 00:00:00 2001 From: Sergey Generalov Date: Fri, 14 Oct 2022 13:23:31 -0700 Subject: [PATCH 1/4] docs: add link to a proper aws guide for configuring credentials Add a link on top of the credentials docs to a proper aws guide Signed-off-by: Sergey Generalov --- site/content/docs/credentials.en.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/content/docs/credentials.en.md b/site/content/docs/credentials.en.md index 5978b2789c9..2a5f18f40f8 100644 --- a/site/content/docs/credentials.en.md +++ b/site/content/docs/credentials.en.md @@ -1,4 +1,6 @@ -This section explains our recommendations around credentials to provide the best experience with the AWS Copilot CLI. +AWS Copilot uses AWS credentials to access AWS API, store and look up an [application's metadata](concepts/applications.en.md), and deploy and operate application's workloads. + +You can learn more on how to configure AWS credentials at [Quick configuration with `aws configure`](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-config). ## Application credentials Copilot uses the AWS credentials from the [default credential provider chain](https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials) to store and look up your [application's metadata](concepts/applications.en.md): which services and environments belong to it. From ab9095370c6d85124f3e7e457c955ed17e793b96 Mon Sep 17 00:00:00 2001 From: Sergey Generalov Date: Sat, 15 Oct 2022 07:27:47 -0700 Subject: [PATCH 2/4] chore: make recommended actions more personal Add "your" to indicate that error is on user side to fix Signed-off-by: Sergey Generalov --- internal/pkg/aws/sessions/errors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/pkg/aws/sessions/errors.go b/internal/pkg/aws/sessions/errors.go index 132d2ace7a5..b1f82056755 100644 --- a/internal/pkg/aws/sessions/errors.go +++ b/internal/pkg/aws/sessions/errors.go @@ -39,9 +39,9 @@ func (e *errCredRetrieval) Error() string { // RecommendActions returns recommended actions to be taken after the error. // Implements main.actionRecommender interface. func (e *errCredRetrieval) RecommendActions() string { - notice := "It looks like AWS credentials are misconfigured or missing" + notice := "It looks like your AWS credentials are misconfigured or missing" if e.profile != "" { - notice = fmt.Sprintf("It looks like AWS profile [%s] is misconfigured or missing", e.profile) + notice = fmt.Sprintf("It looks like your AWS profile [%s] is misconfigured or missing", e.profile) } return fmt.Sprintf(`%s: More information: https://aws.github.io/copilot-cli/docs/credentials/`, notice) From 9d34b9aee4f77346de98b32c34f8e0cc5e8cb280 Mon Sep 17 00:00:00 2001 From: Wanxian Yang <79273084+Lou1415926@users.noreply.github.com> Date: Wed, 18 Jan 2023 12:19:56 -0600 Subject: [PATCH 3/4] Update site/content/docs/credentials.en.md Co-authored-by: Janice Huang <60631893+huanjani@users.noreply.github.com> --- site/content/docs/credentials.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/docs/credentials.en.md b/site/content/docs/credentials.en.md index 2a5f18f40f8..c99d2e44fb3 100644 --- a/site/content/docs/credentials.en.md +++ b/site/content/docs/credentials.en.md @@ -1,4 +1,4 @@ -AWS Copilot uses AWS credentials to access AWS API, store and look up an [application's metadata](concepts/applications.en.md), and deploy and operate application's workloads. +AWS Copilot uses AWS credentials to access the AWS API, store and look up an [application's metadata](concepts/applications.en.md), and deploy and operate an application's workloads. You can learn more on how to configure AWS credentials at [Quick configuration with `aws configure`](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-config). From 34afa9a6e4d26dffa5bd7d2eec69ae79246cd757 Mon Sep 17 00:00:00 2001 From: Wanxian Yang <79273084+Lou1415926@users.noreply.github.com> Date: Wed, 18 Jan 2023 12:20:13 -0600 Subject: [PATCH 4/4] Update site/content/docs/credentials.en.md Co-authored-by: Danny Randall <10566468+dannyrandall@users.noreply.github.com> --- site/content/docs/credentials.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/docs/credentials.en.md b/site/content/docs/credentials.en.md index c99d2e44fb3..ca1bf001833 100644 --- a/site/content/docs/credentials.en.md +++ b/site/content/docs/credentials.en.md @@ -1,6 +1,6 @@ AWS Copilot uses AWS credentials to access the AWS API, store and look up an [application's metadata](concepts/applications.en.md), and deploy and operate an application's workloads. -You can learn more on how to configure AWS credentials at [Quick configuration with `aws configure`](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-config). +You can learn more on how to configure AWS credentials in the [AWS CLI's documentation](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html). ## Application credentials Copilot uses the AWS credentials from the [default credential provider chain](https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials) to store and look up your [application's metadata](concepts/applications.en.md): which services and environments belong to it.