Enterprise Operations Center access
Lets the Enterprise Operations Center triage events and alarms in your account.
truemark-eoc-access/template.yaml
CloudFormation template · 162 lines
AWSTemplateFormatVersion: "2010-09-09"
Description: "Provides TrueMark EOC (Emergency Operations Center) response access"
Resources:
EOCAccessRole:
Type: AWS::IAM::Role
Properties:
RoleName: "TrueMarkEOCAccess"
Description: "Provides TrueMark EOC response access for event triage. Delete stack to remove access."
AssumeRolePolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: Allow
Action:
- sts:AssumeRole
Principal:
AWS:
- 617383789573
Condition:
StringLike:
'aws:PrincipalArn':
- 'arn:aws:iam::617383789573:role/aws-reserved/sso.amazonaws.com/us-east-2/AWSReservedSSO_RemoteEOCAccess_*'
Path: "/"
ManagedPolicyArns:
- arn:aws:iam::aws:policy/job-function/ViewOnlyAccess
- arn:aws:iam::aws:policy/SecurityAudit
- arn:aws:iam::aws:policy/CloudWatchSyntheticsFullAccess
- arn:aws:iam::aws:policy/CloudWatchFullAccessV2
Policies:
- PolicyName: eoc-response-engineer-inline
PolicyDocument:
Version: "2012-10-17"
Statement:
- Sid: AllowGlobalNetworkDashboard
Effect: Allow
Action:
- 'appsync:List*'
- 'appsync:Get*'
- 'appsync:GraphQL'
- 'networkmanager:Get*'
- 'networkmanager:Describe*'
- 'ec2:Get*'
- 'ec2:Describe*'
- 'cloudwatch:List*'
- 'cloudwatch:Get*'
- 'cloudwatch:Describe*'
- 'cloudwatch:Search*'
- 'cloudwatch:PutMetricAlarm'
- 'logs:Describe*'
- 'logs:Get*'
- 'logs:List*'
- 'logs:StartQuery'
- 'logs:StopQuery'
- 'logs:TestMetricFilter'
- 'logs:FilterLogEvents'
- 'events:List*'
- 'events:TestEventPattern'
- 'events:Describe*'
- 'directconnect:Describe*'
- 'directconnect:List*'
- 'ecs:List*'
- 'ecs:Describe*'
- 'elasticloadbalancing:Describe*'
- 'guardduty:List*'
- 'guardduty:Describe*'
- 'guardduty:Get*'
- 'rds:Describe*'
- 'securityhub:Describe*'
- 'securityhub:Get*'
- 'securityhub:List*'
- 'shield:Describe*'
- 'shield:List*'
- 'iam:Get*'
- 'iam:List*'
- 'lambda:Get*'
- 'lambda:List*'
- 'apigateway:GET'
- 'xray:Get*'
- 'xray:BatchGetTraces'
- 'xray:ListTagsForResource'
- 'schemas:List*'
- 'schemas:Get*'
- 'schemas:Describe*'
- 'batch:List*'
- 'batch:Describe*'
- 'health:Describe*'
- 'pi:Get*'
- 'pi:Describe*'
- 'pi:List*'
- 'elasticloadbalancing:List*'
- 'lakeformation:Get*'
- 'lakeformation:List*'
- 'lakeformation:Describe*'
- 'lakeformation:SearchDatabasesByLFTags'
- 'lakeformation:StartQueryPlanning'
Resource: '*'
- Sid: AllowSQS
Effect: Allow
Action:
- 'sqs:GetQueueAttributes'
- 'sqs:GetQueueUrl'
- 'sqs:ListDeadLetterSourceQueues'
- 'sqs:ListQueues'
- 'sqs:PurgeQueue'
- 'logs:Describe*'
- 'logs:Get*'
- 'logs:List*'
- 'logs:StartQuery'
- 'logs:StopQuery'
- 'logs:TestMetricFilter'
- 'logs:FilterLogEvents'
- 'resource-groups:List*'
- 'resource-groups:Get*'
- 'resource-groups:Search*'
- 'oam:*'
- 'applicationinsights:List*'
- 'applicationinsights:Describe*'
- 'support:*'
Resource: '*'
- Sid: Allowec2
Effect: Allow
Action:
- 'ec2:Describe*'
- 'ec2:Get*'
- 'ec2:CreateSecurityGroup'
- 'ec2:DeleteSecurityGroup'
- 'ec2:CopyImage'
- 'ec2:CopySnapshot'
Resource: '*'
- Sid: Allowcodepipeline
Effect: Allow
Action:
- 'codepipeline:Get*'
- 'codepipeline:List*'
- 'codebuild:BatchGet*'
- 'codebuild:List*'
- 'codebuild:Get*'
- 'codecommit:List*'
- 'codecommit:Get*'
- 'codedeploy:List*'
- 'codedeploy:Get*'
Resource: '*'
- Sid: AllowCloudFront
Effect: Allow
Action:
- 'acm:ListCertificates'
- 'cloudfront:Get*'
- 'cloudfront:List*'
- 'iam:ListServerCertificates'
- 'route53:List*'
- 'waf:List*'
- 'waf:Get*'
- 'wafv2:List*'
- 'wafv2:Get*'
- 'wafv2:Describe*'
Resource: '*'
Outputs:
EOCAccessRoleARN:
Value: !GetAtt EOCAccessRole.Arn
Export:
Name: EOCAccessRoleARN
Metadata:
Version: "0"
Launch stack opens the AWS CloudFormation console in us-east-2 with this template and the stack name truemark-eoc-access filled in. Deleting the stack removes the access.