-
Notifications
You must be signed in to change notification settings - Fork 437
Closed
Labels
area/UIIssues about UIIssues about UIarea/envIssues about environments.Issues about environments.good first issueIssues for newcomers.Issues for newcomers.size/SWe should be able to deliver roughly 2 small issues in a sprint.We should be able to deliver roughly 2 small issues in a sprint.type/enhancementIssues that are improvements for existing features.Issues that are improvements for existing features.
Description
When running copilot env init, Copilot will:
- Read the AWS profiles from the machine (usually, this is a file in the ~/.aws/credentials path);
- Prompt the user to select a profile with which the environment should be created with.
Today, if Copilot fails to read the profiles in step 1, it simply errorr out. This requires users to: 1. Either configure a profile, OR 2. use temporary credentials
For a user that is not familiar with AWS, this is confusing; for a toned AWS user that doesn't use shared profiles, this is not convenient.
My proposal is that Copilot should read the AWS profiles from the machine (usually, this is a file in the ~/.aws/credentials path), then:
- If the profile is not configured (i.e. the profile file - usually ~/.aws/credentials - is absent), then Copilot defaults to whatever
aws sts get-caller-identityreturns. In this case, the env session would usefunc (p *Provider) Default() (*session.Session, error) { - If it fails to read the profiles for other reasons, error out
- If it is able to read the profile, prompt.
Metadata
Metadata
Assignees
Labels
area/UIIssues about UIIssues about UIarea/envIssues about environments.Issues about environments.good first issueIssues for newcomers.Issues for newcomers.size/SWe should be able to deliver roughly 2 small issues in a sprint.We should be able to deliver roughly 2 small issues in a sprint.type/enhancementIssues that are improvements for existing features.Issues that are improvements for existing features.