ASK CLI fails to load AWS_ACCESS_KEY_ID variable The Next CEO of Stack OverflowCan't push image to Amazon ECR - fails with “no basic auth credentials”When to use AWS CLI and EB CLIUnable to load AWS credentials from any provider in the chain in Docker EC2 envException while deploying lambda function using ASK CLIFlask-Ask Custom Alexa Skill In PythonAsk init…not workingCannot find the environment variable on skill deployin `validate_options': Missing required arguments: aws_access_key_id, aws_secret_access_key (ArgumentError)Is it possible to setup the ASK CLI profile without setting up an AWS profile

How to delete every two lines after 3rd lines in a file contains very large number of lines?

How do I align (1) and (2)?

Does increasing your ability score affect your main stat?

Poetry, calligrams and TikZ/PStricks challenge

What happened in Rome, when the western empire "fell"?

The exact meaning of 'Mom made me a sandwich'

Why, when going from special to general relativity, do we just replace partial derivatives with covariant derivatives?

WOW air has ceased operation, can I get my tickets refunded?

Is French Guiana a (hard) EU border?

The past simple of "gaslight" – "gaslighted" or "gaslit"?

How to count occurrences of text in a file?

Reference request: Grassmannian and Plucker coordinates in type B, C, D

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

Is there a difference between "Fahrstuhl" and "Aufzug"

What is meant by "large scale tonal organization?"

Axiom Schema vs Axiom

Proper way to express "He disappeared them"

Why does the flight controls check come before arming the autobrake on the A320?

Would a completely good Muggle be able to use a wand?

Is the D&D universe the same as the Forgotten Realms universe?

Flying from Cape Town to England and return to another province

Using Rolle's theorem to show an equation has only one real root

Legal workarounds for testamentary trust perceived as unfair

Why do airplanes bank sharply to the right after air-to-air refueling?



ASK CLI fails to load AWS_ACCESS_KEY_ID variable



The Next CEO of Stack OverflowCan't push image to Amazon ECR - fails with “no basic auth credentials”When to use AWS CLI and EB CLIUnable to load AWS credentials from any provider in the chain in Docker EC2 envException while deploying lambda function using ASK CLIFlask-Ask Custom Alexa Skill In PythonAsk init…not workingCannot find the environment variable on skill deployin `validate_options': Missing required arguments: aws_access_key_id, aws_secret_access_key (ArgumentError)Is it possible to setup the ASK CLI profile without setting up an AWS profile










0















I'm trying to use the Ask CLI to deploy an Alexa skill, but whenever I run ask deploy, I get this error:



[Error]: Cannot find the environment variable: AWS_ACCESS_KEY_ID


I'm 100% sure the AWS_ACCESS_KEY_ID env variable is set to a valid access key. This is how I'm setting it in my ~/.zshrc file:



export AWS_ACCESS_KEY_ID=AKIBJRSRMxxxxxxxxx
export AWS_SECRET_ACCESS_KEY=fS0A6MS9Q9V1OIxKQjKwwaO2fxxxxxxxxxxxx


It is also set in my default AWS credentials at ~/.aws/credentials:



[default]
aws_access_key_id=AKIBJRSRMxxxxxxxxx
aws_secret_access_key=fS0A6MS9Q9V1OIxKQjKwwaO2fxxxxxxxxxxxx


I've re-run ask init multiple times and selected "load from env variables" and logged in through the browser successfully.



I've double checked my .zshrc is loaded with source ~/.zshrc. I've also echoed $AWS_ACCESS_KEY_ID successfully:



echo $AWS_ACCESS_KEY_ID
AKIBJRSRMxxxxxxxxx


And I've tried running ask deploy with the access key variable directly:



AWS_ACCESS_KEY_ID=AKIBJRSRMxxxxxxxxx ask deploy
[Error]: Cannot find the environment variable: AWS_ACCESS_KEY_ID


And I know these credentials are valid because I created them an hour ago.



The ask init prompt even says We have detected you have AWS environment variables. Would you like to setup your profile using those? which I answer yes to:



ask cli init and failed deploy



I've created an issues in the alexa skills kit sdk repo:



https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues/531



But the maintainers point other issue authors to SO and the amazon dev forum.



Versions:



  • Ask CLI 1.6.4

  • Node 10.11.0

  • NPM 6.4.1

  • Mac OSX Mojave 10.14.2

  • AWS CLI aws-cli/1.16.56 Python/2.7.13 Darwin/18.2.0 botocore/1.12.46

EDIT:



I was able to deploy successfully by downgrading to ask-cli@1.6.1. It appears this bug was introduced in ask-cli@1.6.2.










share|improve this question
























  • please add the output of ask --version to the question (1.6.4 according to the bug report)

    – Sébastien Stormacq
    Mar 21 at 18:25











  • @SébastienStormacq Updated my question with versions.

    – SimpleJ
    Mar 21 at 18:31















0















I'm trying to use the Ask CLI to deploy an Alexa skill, but whenever I run ask deploy, I get this error:



[Error]: Cannot find the environment variable: AWS_ACCESS_KEY_ID


I'm 100% sure the AWS_ACCESS_KEY_ID env variable is set to a valid access key. This is how I'm setting it in my ~/.zshrc file:



export AWS_ACCESS_KEY_ID=AKIBJRSRMxxxxxxxxx
export AWS_SECRET_ACCESS_KEY=fS0A6MS9Q9V1OIxKQjKwwaO2fxxxxxxxxxxxx


It is also set in my default AWS credentials at ~/.aws/credentials:



[default]
aws_access_key_id=AKIBJRSRMxxxxxxxxx
aws_secret_access_key=fS0A6MS9Q9V1OIxKQjKwwaO2fxxxxxxxxxxxx


I've re-run ask init multiple times and selected "load from env variables" and logged in through the browser successfully.



I've double checked my .zshrc is loaded with source ~/.zshrc. I've also echoed $AWS_ACCESS_KEY_ID successfully:



echo $AWS_ACCESS_KEY_ID
AKIBJRSRMxxxxxxxxx


And I've tried running ask deploy with the access key variable directly:



AWS_ACCESS_KEY_ID=AKIBJRSRMxxxxxxxxx ask deploy
[Error]: Cannot find the environment variable: AWS_ACCESS_KEY_ID


And I know these credentials are valid because I created them an hour ago.



The ask init prompt even says We have detected you have AWS environment variables. Would you like to setup your profile using those? which I answer yes to:



ask cli init and failed deploy



I've created an issues in the alexa skills kit sdk repo:



https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues/531



But the maintainers point other issue authors to SO and the amazon dev forum.



Versions:



  • Ask CLI 1.6.4

  • Node 10.11.0

  • NPM 6.4.1

  • Mac OSX Mojave 10.14.2

  • AWS CLI aws-cli/1.16.56 Python/2.7.13 Darwin/18.2.0 botocore/1.12.46

EDIT:



I was able to deploy successfully by downgrading to ask-cli@1.6.1. It appears this bug was introduced in ask-cli@1.6.2.










share|improve this question
























  • please add the output of ask --version to the question (1.6.4 according to the bug report)

    – Sébastien Stormacq
    Mar 21 at 18:25











  • @SébastienStormacq Updated my question with versions.

    – SimpleJ
    Mar 21 at 18:31













0












0








0








I'm trying to use the Ask CLI to deploy an Alexa skill, but whenever I run ask deploy, I get this error:



[Error]: Cannot find the environment variable: AWS_ACCESS_KEY_ID


I'm 100% sure the AWS_ACCESS_KEY_ID env variable is set to a valid access key. This is how I'm setting it in my ~/.zshrc file:



export AWS_ACCESS_KEY_ID=AKIBJRSRMxxxxxxxxx
export AWS_SECRET_ACCESS_KEY=fS0A6MS9Q9V1OIxKQjKwwaO2fxxxxxxxxxxxx


It is also set in my default AWS credentials at ~/.aws/credentials:



[default]
aws_access_key_id=AKIBJRSRMxxxxxxxxx
aws_secret_access_key=fS0A6MS9Q9V1OIxKQjKwwaO2fxxxxxxxxxxxx


I've re-run ask init multiple times and selected "load from env variables" and logged in through the browser successfully.



I've double checked my .zshrc is loaded with source ~/.zshrc. I've also echoed $AWS_ACCESS_KEY_ID successfully:



echo $AWS_ACCESS_KEY_ID
AKIBJRSRMxxxxxxxxx


And I've tried running ask deploy with the access key variable directly:



AWS_ACCESS_KEY_ID=AKIBJRSRMxxxxxxxxx ask deploy
[Error]: Cannot find the environment variable: AWS_ACCESS_KEY_ID


And I know these credentials are valid because I created them an hour ago.



The ask init prompt even says We have detected you have AWS environment variables. Would you like to setup your profile using those? which I answer yes to:



ask cli init and failed deploy



I've created an issues in the alexa skills kit sdk repo:



https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues/531



But the maintainers point other issue authors to SO and the amazon dev forum.



Versions:



  • Ask CLI 1.6.4

  • Node 10.11.0

  • NPM 6.4.1

  • Mac OSX Mojave 10.14.2

  • AWS CLI aws-cli/1.16.56 Python/2.7.13 Darwin/18.2.0 botocore/1.12.46

EDIT:



I was able to deploy successfully by downgrading to ask-cli@1.6.1. It appears this bug was introduced in ask-cli@1.6.2.










share|improve this question
















I'm trying to use the Ask CLI to deploy an Alexa skill, but whenever I run ask deploy, I get this error:



[Error]: Cannot find the environment variable: AWS_ACCESS_KEY_ID


I'm 100% sure the AWS_ACCESS_KEY_ID env variable is set to a valid access key. This is how I'm setting it in my ~/.zshrc file:



export AWS_ACCESS_KEY_ID=AKIBJRSRMxxxxxxxxx
export AWS_SECRET_ACCESS_KEY=fS0A6MS9Q9V1OIxKQjKwwaO2fxxxxxxxxxxxx


It is also set in my default AWS credentials at ~/.aws/credentials:



[default]
aws_access_key_id=AKIBJRSRMxxxxxxxxx
aws_secret_access_key=fS0A6MS9Q9V1OIxKQjKwwaO2fxxxxxxxxxxxx


I've re-run ask init multiple times and selected "load from env variables" and logged in through the browser successfully.



I've double checked my .zshrc is loaded with source ~/.zshrc. I've also echoed $AWS_ACCESS_KEY_ID successfully:



echo $AWS_ACCESS_KEY_ID
AKIBJRSRMxxxxxxxxx


And I've tried running ask deploy with the access key variable directly:



AWS_ACCESS_KEY_ID=AKIBJRSRMxxxxxxxxx ask deploy
[Error]: Cannot find the environment variable: AWS_ACCESS_KEY_ID


And I know these credentials are valid because I created them an hour ago.



The ask init prompt even says We have detected you have AWS environment variables. Would you like to setup your profile using those? which I answer yes to:



ask cli init and failed deploy



I've created an issues in the alexa skills kit sdk repo:



https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues/531



But the maintainers point other issue authors to SO and the amazon dev forum.



Versions:



  • Ask CLI 1.6.4

  • Node 10.11.0

  • NPM 6.4.1

  • Mac OSX Mojave 10.14.2

  • AWS CLI aws-cli/1.16.56 Python/2.7.13 Darwin/18.2.0 botocore/1.12.46

EDIT:



I was able to deploy successfully by downgrading to ask-cli@1.6.1. It appears this bug was introduced in ask-cli@1.6.2.







amazon-web-services aws-sdk alexa alexa-voice-service






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 21 at 18:42







SimpleJ

















asked Mar 21 at 18:12









SimpleJSimpleJ

5,98642246




5,98642246












  • please add the output of ask --version to the question (1.6.4 according to the bug report)

    – Sébastien Stormacq
    Mar 21 at 18:25











  • @SébastienStormacq Updated my question with versions.

    – SimpleJ
    Mar 21 at 18:31

















  • please add the output of ask --version to the question (1.6.4 according to the bug report)

    – Sébastien Stormacq
    Mar 21 at 18:25











  • @SébastienStormacq Updated my question with versions.

    – SimpleJ
    Mar 21 at 18:31
















please add the output of ask --version to the question (1.6.4 according to the bug report)

– Sébastien Stormacq
Mar 21 at 18:25





please add the output of ask --version to the question (1.6.4 according to the bug report)

– Sébastien Stormacq
Mar 21 at 18:25













@SébastienStormacq Updated my question with versions.

– SimpleJ
Mar 21 at 18:31





@SébastienStormacq Updated my question with versions.

– SimpleJ
Mar 21 at 18:31












1 Answer
1






active

oldest

votes


















1














Looks like a bug in that version of the CLI. Current workaround is to use AWS credentials in your ~/.aws profile and not environment variables.



I forwarded this question to the appropriate team @ Alexa.






share|improve this answer























  • I have the same credentials set ~/.aws/credentials as [default].

    – SimpleJ
    Mar 21 at 18:33











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55286776%2fask-cli-fails-to-load-aws-access-key-id-variable%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Looks like a bug in that version of the CLI. Current workaround is to use AWS credentials in your ~/.aws profile and not environment variables.



I forwarded this question to the appropriate team @ Alexa.






share|improve this answer























  • I have the same credentials set ~/.aws/credentials as [default].

    – SimpleJ
    Mar 21 at 18:33















1














Looks like a bug in that version of the CLI. Current workaround is to use AWS credentials in your ~/.aws profile and not environment variables.



I forwarded this question to the appropriate team @ Alexa.






share|improve this answer























  • I have the same credentials set ~/.aws/credentials as [default].

    – SimpleJ
    Mar 21 at 18:33













1












1








1







Looks like a bug in that version of the CLI. Current workaround is to use AWS credentials in your ~/.aws profile and not environment variables.



I forwarded this question to the appropriate team @ Alexa.






share|improve this answer













Looks like a bug in that version of the CLI. Current workaround is to use AWS credentials in your ~/.aws profile and not environment variables.



I forwarded this question to the appropriate team @ Alexa.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 21 at 18:31









Sébastien StormacqSébastien Stormacq

8,25322445




8,25322445












  • I have the same credentials set ~/.aws/credentials as [default].

    – SimpleJ
    Mar 21 at 18:33

















  • I have the same credentials set ~/.aws/credentials as [default].

    – SimpleJ
    Mar 21 at 18:33
















I have the same credentials set ~/.aws/credentials as [default].

– SimpleJ
Mar 21 at 18:33





I have the same credentials set ~/.aws/credentials as [default].

– SimpleJ
Mar 21 at 18:33



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55286776%2fask-cli-fails-to-load-aws-access-key-id-variable%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현