Skip to content

Instantly share code, notes, and snippets.

@saurabh-hirani
Created May 13, 2020 13:24
Show Gist options
  • Select an option

  • Save saurabh-hirani/df6aedfafc2a1bf3bf50b33334ae3d2b to your computer and use it in GitHub Desktop.

Select an option

Save saurabh-hirani/df6aedfafc2a1bf3bf50b33334ae3d2b to your computer and use it in GitHub Desktop.

Revisions

  1. saurabh-hirani created this gist May 13, 2020.
    47 changes: 47 additions & 0 deletions cloud-nuke-ignore-errors.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,47 @@
    ```
    INFO[2020-05-06T19:31:10+05:30] The following resources types will be nuked:
    INFO[2020-05-06T19:31:10+05:30] - ami
    INFO[2020-05-06T19:31:10+05:30] - asg
    INFO[2020-05-06T19:31:10+05:30] - ebs
    INFO[2020-05-06T19:31:10+05:30] - ec2
    INFO[2020-05-06T19:31:10+05:30] - ecsserv
    INFO[2020-05-06T19:31:10+05:30] - eip
    INFO[2020-05-06T19:31:10+05:30] - ekscluster
    INFO[2020-05-06T19:31:10+05:30] - elb
    INFO[2020-05-06T19:31:10+05:30] - elbv2
    INFO[2020-05-06T19:31:10+05:30] - lc
    INFO[2020-05-06T19:31:10+05:30] - rds
    INFO[2020-05-06T19:31:10+05:30] - s3
    INFO[2020-05-06T19:31:10+05:30] - snap
    INFO[2020-05-06T19:31:11+05:30] Retrieving active AWS resources in [us-east-1]
    INFO[2020-05-06T19:31:11+05:30] Checking region [1/1]: us-east-1
    WARN[2020-05-06T19:31:12+05:30] Ignoring get resources error - asg - AccessDenied: User: arn:aws:sts::12345678:assumed-role/role-1/session-1 is not authorized to perform: autoscaling:DescribeAutoScalingGroups
    status code: 403, request id: xxxx
    WARN[2020-05-06T19:31:12+05:30] Ignoring get resources error - lc - AccessDenied: User: arn:aws:sts::12345678:assumed-role/role-1/session-1 is not authorized to perform: autoscaling:DescribeLaunchConfigurations
    status code: 403, request id: xxxx
    WARN[2020-05-06T19:31:13+05:30] Ignoring get resources error - elb - AccessDenied: User: arn:aws:sts::12345678:assumed-role/role-1/session-1 is not authorized to perform: elasticloadbalancing:DescribeLoadBalancers
    status code: 403, request id: xxxx
    WARN[2020-05-06T19:31:13+05:30] Ignoring get resources error - elbv2 - AccessDenied: User: arn:aws:sts::12345678:assumed-role/role-1/session-1 is not authorized to perform: elasticloadbalancing:DescribeLoadBalancers
    status code: 403, request id: xxxx
    WARN[2020-05-06T19:31:14+05:30] Ignoring get resources error - ec2 - UnauthorizedOperation: You are not authorized to perform this operation.
    status code: 403, request id: xxxx
    WARN[2020-05-06T19:31:15+05:30] Ignoring get resources error - ebs - UnauthorizedOperation: You are not authorized to perform this operation.
    status code: 403, request id: xxxx
    WARN[2020-05-06T19:31:16+05:30] Ignoring get resources error - eip - UnauthorizedOperation: You are not authorized to perform this operation.
    status code: 403, request id: xxxx
    WARN[2020-05-06T19:31:17+05:30] Ignoring get resources error - ami - UnauthorizedOperation: You are not authorized to perform this operation.
    status code: 403, request id: xxxx
    WARN[2020-05-06T19:31:18+05:30] Ignoring get resources error - snap - UnauthorizedOperation: You are not authorized to perform this operation.
    status code: 403, request id: xxxx
    WARN[2020-05-06T19:31:20+05:30] Ignoring get resources error - ecsserv - AccessDeniedException: User: arn:aws:sts::12345678:assumed-role/role-1/session-1 is not authorized to perform: ecs:ListClusters on resource: *
    status code: 400, request id: xxxx
    WARN[2020-05-06T19:31:21+05:30] Ignoring get resources error - ekscluster - AccessDeniedException: User: arn:aws:sts::12345678:assumed-role/role-1/session-1 is not authorized to perform: eks:ListClusters on resource: arn:aws:eks:us-east-1:12345678:cluster/*
    status code: 403, request id: xxxx
    WARN[2020-05-06T19:31:22+05:30] Ignoring get resources error - rds - AccessDenied: User: arn:aws:sts::12345678:assumed-role/role-1/session-1 is not authorized to perform: rds:DescribeDBInstances
    status code: 403, request id: xxxx
    WARN[2020-05-06T19:31:23+05:30] Ignoring get resources error - rds - AccessDenied: User: arn:aws:sts::12345678:assumed-role/role-1/session-1 is not authorized to perform: rds:DescribeDBClusters
    status code: 403, request id: xxxx```
    WARN[2020-05-06T19:31:24+05:30] Ignoring get resources error - s3 - AccessDenied: Access Denied
    status code: 403, request id: xxxx
    INFO[2020-05-06T19:31:24+05:30] Nothing to nuke, you're all good!
    ```