Skip to content

Instantly share code, notes, and snippets.

@nicolai86
Last active January 30, 2023 20:16
Show Gist options
  • Save nicolai86/79b9caa5a3557d9d4f8a6e2227e34f2d to your computer and use it in GitHub Desktop.
Save nicolai86/79b9caa5a3557d9d4f8a6e2227e34f2d to your computer and use it in GitHub Desktop.
Lightning AI BYOC IAM policy - 2022-12-22
{
"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