forked from netrunnerhq/nextjs-aws-s3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iam_netrunner_setup.yaml
32 lines (29 loc) · 1.1 KB
/
iam_netrunner_setup.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
Description: This template creates the resources necessary for Netrunner to assume to perform actions on your AWS Account.
Parameters:
NetrunnerAWSAccountId:
Description: Netrunner AWS account ID allowed to assume the integration IAM role. Do not change!
Type: String
Default: 395261708130
ExternalParameterId:
Description: External Parameter for securing the Netrunner IAM role. Do not change!
Type: String
Default: ""
Resources:
NetrunnerEnvironmentRole:
Type: "AWS::IAM::Role"
Properties:
RoleName: NetrunnerIntegrationRole
AssumeRolePolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: Allow
Principal:
AWS:
- !Sub arn:aws:iam::${NetrunnerAWSAccountId}:role/netrunner-forward-lambda-integration-role-prod
Action: "sts:AssumeRole"
Condition:
StringEquals:
"sts:ExternalId": !Ref ExternalParameterId
ManagedPolicyArns:
- "arn:aws:iam::aws:policy/CloudWatchLogsReadOnlyAccess"
- "arn:aws:iam::aws:policy/AmazonS3FullAccess"