Merge pull request #765 from docker/ecs_default_profile

Populate ~/.aws/config(credentials) on ecs context create
This commit is contained in:
Anca Iordache 2020-10-16 11:33:03 +02:00 committed by GitHub
commit 05295b5e8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 167 additions and 99 deletions

View file

@ -56,8 +56,6 @@ func createEcsCommand() *cobra.Command {
cmd.Flags().BoolVar(&localSimulation, "local-simulation", false, "Create context for ECS local simulation endpoints")
cmd.Flags().StringVar(&opts.Profile, "profile", "", "Profile")
cmd.Flags().StringVar(&opts.Region, "region", "", "Region")
cmd.Flags().StringVar(&opts.AwsID, "key-id", "", "AWS Access Key ID")
cmd.Flags().StringVar(&opts.AwsSecret, "secret-key", "", "AWS Secret Access Key")
return cmd
}