Last active
January 30, 2023 20:16
-
-
Save nicolai86/79b9caa5a3557d9d4f8a6e2227e34f2d to your computer and use it in GitHub Desktop.
Lightning AI BYOC IAM policy - 2022-12-22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": [ | |
"autoscaling:*", | |
"cloudwatch:*", | |
"ec2:*", | |
"ecr:*", | |
"eks:*", | |
"elasticloadbalancing:*", | |
"events:*", | |
"guardduty:*", | |
"iam:*", | |
"logs:*", | |
"route53resolver:*", | |
"s3:*", | |
"sns:*", | |
"sqs:*", | |
"tag:GetResources", | |
"resource-groups:SearchResources", | |
"codebuild:*" | |
], | |
"Effect": "Allow", | |
"Resource": "*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": "iam:CreateServiceLinkedRole", | |
"Resource": "*", | |
"Condition": { | |
"StringLike": { | |
"iam:AWSServiceName": [ | |
"guardduty.amazonaws.com", | |
"malware-protection.guardduty.amazonaws.com" | |
] | |
} | |
} | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": "iam:CreateServiceLinkedRole", | |
"Resource": "*", | |
"Condition": { | |
"StringEquals": { | |
"iam:AWSServiceName": [ | |
"autoscaling.amazonaws.com", | |
"ec2scheduled.amazonaws.com", | |
"elasticloadbalancing.amazonaws.com", | |
"spot.amazonaws.com", | |
"spotfleet.amazonaws.com", | |
"transitgateway.amazonaws.com" | |
] | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment