Skip to content

Pause all services and functions on my AWS account

-1

I'd like someone to help me pause all services and functions across all my objects on my AWS account, since I've had a breach in the company, and I'd like to minimize damage.

asked 10 months ago174 views

1 Answer
0

When you say objects, I reckon you are talking about S3. You can set the restrictions using SCP.

{
 "Version": "2012-10-17",
 "Statement": [
   {
     "Sid": "DenyAllS3Actions",
     "Effect": "Deny",
     "Action": "s3:*",
     "Resource": "*"
   }
 ]
}

If you want to allow certain IAM roles only, you can try the SCP policy below.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "DenyS3ForSpecificRole",
      "Effect": "Deny",
      "Action": "s3:*",
      "Resource": "*",
      "Condition": {
        "ArnEquals": {
          "aws:PrincipalARN": "arn:aws:iam::111122223333:role/BlockedS3Role"
        }
      }
    }
  ]
}

EXPERT

answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.