Hi, I am trying to create a SQS using the serveless framework, however I keep getting access denied.
I have double checked and I have all of the permission on my user.
This is what I have in my serverless yaml:
provider: name: aws runtime: nodejs8.10 region: xx-west-1 iamRoleStatements: - Effect: "Allow" Action: - "sqs:SendMessage" - "sqs:GetQueueAttributes" - "sqs:GetQueueUrl" - "sqs:ListQueues" Resource: "arn:aws:sqs:::HtmlToPDFQueue" functions: createQueue: handler: handler.createQueue timeout: 15 events: - http: path: createqueue method: post cors: true resources: Resources: HtmlToPDFQueue: Type: "AWS::SQS::Queue" Properties: QueueName: "HtmlToPDFQueue"
If anyone knows how I can fix this or I am doing something wrong, please let me know. thank you.