Hello World Tutoril - Deployment

0

I am a complete newbie to AWS, trying to figure out why the
sam deploy --guided
command from the Hello World tutorial is not working.

Error: Unable to locate credentials.

*** AWS guide tells me that the SAM console is not configured, and refers me to step 5, where stated, you need to use the "aws configure" command. But I don't have such a command because I have AWS SAM CLI installed (according to the guide), not AWS CLI!
Why am I being asked to solve the problem with a command from a completely different environment? Or am I not seeing something obvious? Thanks for the clarification.

Edd
gefragt vor 5 Monaten175 Aufrufe
1 Antwort
0
Akzeptierte Antwort

Hello.

Installing the AWS CLI is listed in the prerequisites for using AWS SAM.
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/prerequisites.html

An AWS account, AWS Identity and Access Management (IAM) credentials, and an IAM access key pair.
The AWS Command Line Interface (AWS CLI) to configure AWS credentials.

If you want to set the authentication information without using the AWS CLI, you can also set it as a shell environment variable as shown below.
The following commands can be used on Linux or Mac.
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html

export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
export AWS_DEFAULT_REGION=us-west-2
profile picture
EXPERTE
beantwortet vor 5 Monaten
profile picture
EXPERTE
überprüft vor 5 Monaten
profile pictureAWS
EXPERTE
überprüft vor 5 Monaten
  • Thank you, I really missed this one within many others...

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen