4
votes

I'm currently working on AWS serverless lambda function deployment and try to distribute and test with AWS SAM. However, when I followed the AWS SAM hello world template tutorial on official website, I can't really deploy my code to AWS.

I've already

  1. Assigned a working IAM account
  2. Install every package we need for AWS SAM (brew, aws-sam-cli...etc)
  3. Set up AWS configuration
  4. Using a function template provided by AWS

Yet, I got error message

Error: Stack aws-sam-cli-managed-default is missing Tags and/or Outputs information and therefore not in a healthy state (Current state:aws-sam-cli-managed-default). Failing as the stack was likely not created by the AWS SAM CLI

2
Please edit your question and add the code your template - petey

2 Answers

1
votes

Took me a minute to figure out too.

Open up CloudFormation in AWS and delete the aws-sam-cli-managed-default stack then try to redeploy.

Every time your deploy fails you'll likely have to do this again.

0
votes

It's aws credentials error - because you not configure it right or not config at all.

If you didn't have aws cli installed on your computer, find aws cli installer for your filesystem, for mac it's https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-mac.html.

Go to https://console.aws.amazon.com/iam and create new user with AdministratorAccess permission and get aws_access_key_id and aws_secret_access_key.

Go to your terminal and type aws configure.

Enter your credentials.

Try to run sum build && sum deploy --guided

Now it's need to work.