Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lifcycled-queue-cleaner needs configuration #90

Open
cole-h opened this issue Mar 2, 2021 · 0 comments
Open

lifcycled-queue-cleaner needs configuration #90

cole-h opened this issue Mar 2, 2021 · 0 comments

Comments

@cole-h
Copy link
Contributor

cole-h commented Mar 2, 2021

When testing lifecycled-queue-cleaner, I was running into the following error message:

Mar 02 19:05:21 lolhi lifecycled-queue-cleaner[11680]: 2021/03/02 19:05:21 AuthorizationError: User: arn:aws:sts::000000000000:assumed-role/lawsserver00000000000000000000000000/i-00000000000000000 is not authorized to perform: SNS:ListSubscriptions on resource: arn:aws:sns:us-east-1:000000000000:*

Applying the following terraform config allowed it to work:

data "aws_iam_policy_document" "cleaner" {
 statement {
   effect = "Allow"

   actions = [
     "sns:ListSubscriptions",
     "ec2:DescribeInstances",
     "sqs:ListQueues"
   ]

   resources = [
     "*",
   ]
 }

 statement {
   effect = "Allow"

   actions = [
     "sqs:*",
   ]

   resources = ["arn:aws:sqs:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:lifecycled-*"]
 }
}

Should this be documented somewhere? (Or, is it already and I just missed it?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant