-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
623 additions
and
13 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
.../test/aws-iam/test/integ.imported-role.js.snapshot/ImportedRoleTestAssertions.assets.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
6 changes: 2 additions & 4 deletions
6
...58d60d220b0b10b126035713b.bundle/index.js → ...38d31b467f6a205b51ea63a83.bundle/index.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
...g/test/aws-iam/test/integ.imported-role.js.snapshot/integ-iam-imported-role-3.assets.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
158 changes: 158 additions & 0 deletions
158
...test/aws-iam/test/integ.imported-role.js.snapshot/integ-iam-imported-role-3.template.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
{ | ||
"Resources": { | ||
"roleToBeImportedCAC1213C": { | ||
"Type": "AWS::IAM::Role", | ||
"Properties": { | ||
"AssumeRolePolicyDocument": { | ||
"Statement": [ | ||
{ | ||
"Action": "sts:AssumeRole", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": "sqs.amazonaws.com" | ||
} | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
}, | ||
"RoleName": "mutableRoleToBeImported" | ||
} | ||
}, | ||
"ManagedPolicy7BAB786E": { | ||
"Type": "AWS::IAM::ManagedPolicy", | ||
"Properties": { | ||
"Description": "", | ||
"ManagedPolicyName": "MyCustomManagedPolicy2", | ||
"Path": "/", | ||
"PolicyDocument": { | ||
"Statement": [ | ||
{ | ||
"Action": "s3:ListBucket", | ||
"Effect": "Allow", | ||
"Resource": "arn:aws:s3:::my-bucket" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
}, | ||
"Roles": [ | ||
{ | ||
"Fn::Select": [ | ||
1, | ||
{ | ||
"Fn::Split": [ | ||
"/", | ||
{ | ||
"Fn::Select": [ | ||
5, | ||
{ | ||
"Fn::Split": [ | ||
":", | ||
{ | ||
"Fn::GetAtt": [ | ||
"roleToBeImportedCAC1213C", | ||
"Arn" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"ManagedPolicy135BDEF37": { | ||
"Type": "AWS::IAM::ManagedPolicy", | ||
"Properties": { | ||
"Description": "", | ||
"ManagedPolicyName": "MyCustomManagedPolicy1", | ||
"Path": "/", | ||
"PolicyDocument": { | ||
"Statement": [ | ||
{ | ||
"Action": "s3:ListBucket", | ||
"Effect": "Allow", | ||
"Resource": "arn:aws:s3:::my-bucket" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
}, | ||
"Roles": [ | ||
{ | ||
"Fn::Select": [ | ||
1, | ||
{ | ||
"Fn::Split": [ | ||
"/", | ||
{ | ||
"Fn::Select": [ | ||
5, | ||
{ | ||
"Fn::Split": [ | ||
":", | ||
{ | ||
"Fn::GetAtt": [ | ||
"roleToBeImportedCAC1213C", | ||
"Arn" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"Outputs": { | ||
"ExportsOutputRefroleToBeImportedCAC1213CDE38D2C6": { | ||
"Value": { | ||
"Ref": "roleToBeImportedCAC1213C" | ||
}, | ||
"Export": { | ||
"Name": "integ-iam-imported-role-3:ExportsOutputRefroleToBeImportedCAC1213CDE38D2C6" | ||
} | ||
} | ||
}, | ||
"Parameters": { | ||
"BootstrapVersion": { | ||
"Type": "AWS::SSM::Parameter::Value<String>", | ||
"Default": "/cdk-bootstrap/hnb659fds/version", | ||
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" | ||
} | ||
}, | ||
"Rules": { | ||
"CheckBootstrapVersion": { | ||
"Assertions": [ | ||
{ | ||
"Assert": { | ||
"Fn::Not": [ | ||
{ | ||
"Fn::Contains": [ | ||
[ | ||
"1", | ||
"2", | ||
"3", | ||
"4", | ||
"5" | ||
], | ||
{ | ||
"Ref": "BootstrapVersion" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." | ||
} | ||
] | ||
} | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
...-cdk-testing/framework-integ/test/aws-iam/test/integ.imported-role.js.snapshot/integ.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.