-
Notifications
You must be signed in to change notification settings - Fork 5
/
managed.yaml
38 lines (36 loc) · 1.17 KB
/
managed.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
AWSTemplateFormatVersion: '2010-09-09'
Description: Setup AWS CloudProvider for Spinnaker
Parameters:
AuthArn:
Description: ARN which Spinnaker is using. It should be the ARN either of the IAM user or the EC2 Instance Role, which is used by Spinnaker in Managing Account
Type: String
ManagingAccountId:
Description: AWS Account number, in which Spinnaker is running
Type: String
Resources:
SpinnakerManagedRole:
Type: AWS::IAM::Role
Properties:
RoleName: spinnakerManaged
AssumeRolePolicyDocument:
Statement:
- Action:
- sts:AssumeRole
Effect: Allow
Principal:
AWS: !Ref AuthArn
Version: '2012-10-17'
ManagedPolicyArns:
- arn:aws:iam::aws:policy/PowerUserAccess
SpinnakerManagedPolicy:
Type: AWS::IAM::Policy
Properties:
Roles:
- !Ref SpinnakerManagedRole
PolicyDocument:
Version: '2012-10-17'
Statement:
- Action: iam:PassRole
Effect: Allow
Resource: "*" # You should restrict this only to certain set of roles, if required
PolicyName: SpinnakerPassRole