Coder Social home page Coder Social logo

Keep getting [Error]: CliError: The CloudFormation deploy failed for Alexa region "default": Access Denied about openhab-alexa HOT 6 CLOSED

combatistor avatar combatistor commented on August 17, 2024
Keep getting [Error]: CliError: The CloudFormation deploy failed for Alexa region "default": Access Denied

from openhab-alexa.

Comments (6)

combatistor avatar combatistor commented on August 17, 2024 2

It seems to have worked!
this is my policy json configuration

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "lambda:CreateFunction",
                "cloudformation:UpdateResource",
                "logs:DescribeLogStreams",
                "iam:CreateRole",
                "s3:CreateBucket",
                "cloudformation:DescribeStackResource",
                "iam:AttachRolePolicy",
                "s3:ListBucket",
                "iam:PutRolePolicy",
                "iam:PassRole",
                "cloudformation:CancelResourceRequest",
                "iam:DeleteRolePolicy",
                "logs:GetLogEvents",
                "cloudformation:UpdateStack",
                "lambda:DeleteFunction",
                "logs:FilterLogEvents",
                "s3:PutBucketVersioning",
                "iam:GetRole",
                "cloudformation:DeleteResource",
                "lambda:ListFunctions",
                "lambda:GetFunction",
                "cloudformation:GetResourceRequestStatus",
                "cloudformation:ListResourceRequests",
                "lambda:UpdateFunctionConfiguration",
                "cloudformation:DescribeStackResources",
                "iam:DeleteRole",
                "s3:GetBucketVersioning",
                "logs:CreateLogGroup",
                "cloudformation:DescribeStacks",
                "lambda:UpdateFunctionCode",
                "cloudformation:ListResources",
                "s3:PutObject",
                "s3:GetObject",
                "lambda:AddPermission",
                "cloudformation:GetResource",
                "cloudformation:CreateStack",
                "cloudformation:CreateResource",
                "logs:PutRetentionPolicy",
                "lambda:RemovePermission",
                "s3:GetObjectVersion"
            ],
            "Resource": "*"
        }
    ]
}

Sorry for the spam

from openhab-alexa.

jsetton avatar jsetton commented on August 17, 2024

This looks like an AWS permission error. You should make sure that the AWS credentials you are using have the proper policy permissions.

The official documentation is missing some policies. You should use the ones listed in alexa/ask-cli#408.

If this doesn't resolve your issue, I would recommend using the debug parameter to get more information about the source of the error and search online for a possible solution.

from openhab-alexa.

combatistor avatar combatistor commented on August 17, 2024

Thanks for your comment, I could progress a bit.

Though I'm still getting some error when deploying...

Screenshot 2022-06-27 213147

I spent time to adjust the policies, but it always complain something else is missing...

Any clues?

from openhab-alexa.

combatistor avatar combatistor commented on August 17, 2024

After adjusting the policies, still getting errors

Screenshot 2022-06-27 213740

from openhab-alexa.

combatistor avatar combatistor commented on August 17, 2024

Continuing...

Screenshot 2022-06-27 214635

from openhab-alexa.

combatistor avatar combatistor commented on August 17, 2024

getting closer maybe?

Screenshot 2022-06-27 215104

Edit: it seems from here I don't really know what I'm supposed to do
Tried to check the policies but nothing matches this "LogGroup"

Edit2: after clearing the logs using the command in the readme.md:
aws logs delete-log-group --log-group-name /aws/lambda/alexa-openhab

I got another error

Screenshot 2022-06-27 220417

from openhab-alexa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.