question

newuser-ea5c6207-0008-4d79-9e05-deaef62b735d avatar image

No AWS credential setup for profile: [default]

No AWS credential setup for profile: [default]. Lambda clone skipped. CLI lambda functionalities can be enabled by running `ask init` again to add 'aws_profile' to ASK cli_config

I keep getting the follow error message. I don't think I want to use the profile [default], but I'm not sure how to change it. I tried uninstalling and reinstalling both AWS and ASK, but I keep getting this. Any advice?

When I do ask init, I select my username. I don't select default.. so I don't understand why it is checking the AWS credential setup for [default].

  Create new profile 

  ──────────────

  Profile              Associated AWS Profile

  [default]                 ** NULL ** 

❯ [username]                 "default" 
? Please choose one from the following AWS profile

s for skill's Lambda function deployment.

 

❯ default 

  ──────────────

  skip AWS credential for ask-cli 

After that, I only have the default option...why?

ask cliaws
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Amazon_Bernardo Bezerra avatar image
Amazon_Bernardo Bezerra answered

Hello and thank you for your message.

You don't need to use the default profile in ASK CLI if you don't want to, but then, whenever you type in a command (ask new, ask deploy, ask clone, etc), you have to specify which profile you are using, like so:

ask new -n mySkill -p myProfile

If you don't, ASK CLI will assume you are using the default profile. Another way to go about this would be to configure the default profile with your AWS credentials, by executing ask init and then selecting the [default] option when prompted for the profile.

You can find more information about ASK CLI here.

I hope this solves your issue.

Kind regards,

Barry

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.