This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpolicy-quickstart-mongodb-atlas-installer.yaml
63 lines (63 loc) · 2.26 KB
/
policy-quickstart-mongodb-atlas-installer.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample role minimal IAM needed for MongoDB Atlas CFN
Resources:
RegisterTypeRole:
Type: AWS::IAM::Role
Properties:
RoleName: "MongoDB-Atlas-CloudFormation-Installer"
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Principal:
Service: lambda.amazonaws.com
Action: sts:AssumeRole
- Effect: Allow
Principal:
AWS: !Sub 'arn:aws:iam::${AWS::AccountId}:root'
Action: sts:AssumeRole
Path: "/"
ManagedPolicyArns:
- !Sub 'arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole'
Policies:
- PolicyName: ResourceTypePolicy
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Action:
- "cloudformation:CreateStack"
- "cloudformation:DeleteStack"
- "cloudformation:DescribeStackEvents"
- "cloudformation:DescribeStacks"
- "iam:GetRole"
- "iam:PassRole"
- "iam:CreateRole"
- "iam:CreatePolicy"
- "iam:ListPolicyVersions"
- "iam:DeletePolicyVersion"
- "iam:CreatePolicyVersion"
- "iam:AttachRolePolicy"
- "iam:PutRolePolicy"
- "iam:DeleteRolePolicy"
- "ssm:GetParameter"
- "ssm:PutParameter"
- "sts:GetCallerIdentity"
- "s3:GetObject"
- "s3:CreateBucket"
- "s3:ListBucket"
- "kms:GenerateDataKey"
- "kms:CreateKey"
- "kms:Describe*"
- "kms:Enable*"
- "kms:List*"
- "kms:Put*"
- "kms:Update*"
- "kms:ScheduleKeyDeletion"
- "kms:CancelKeyDeletion"
- "kms:Encrypt"
- "kms:Decrypt"
- "kms:ReEncrypt"
- "kms:GenerateDataKey*"
- "kms:DescribeKey"
Resource: "*"