-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
1 parent
57e0259
commit f83d03f
Showing
8 changed files
with
740 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...guration.js.snapshot/IotAuditConfigurationTestDefaultTestDeployAssert6A603D00.assets.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
...ration.js.snapshot/IotAuditConfigurationTestDefaultTestDeployAssert6A603D00.template.json
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
...pha/test/integ.audit-configuration.js.snapshot/IotAuditConfigurationTestStack.assets.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
184 changes: 184 additions & 0 deletions
184
...a/test/integ.audit-configuration.js.snapshot/IotAuditConfigurationTestStack.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,184 @@ | ||
{ | ||
"Resources": { | ||
"TopicBFC7AF6E": { | ||
"Type": "AWS::SNS::Topic" | ||
}, | ||
"AuditConfigurationAuditRole0FFA1461": { | ||
"Type": "AWS::IAM::Role", | ||
"Properties": { | ||
"AssumeRolePolicyDocument": { | ||
"Statement": [ | ||
{ | ||
"Action": "sts:AssumeRole", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": "iot.amazonaws.com" | ||
} | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
}, | ||
"ManagedPolicyArns": [ | ||
{ | ||
"Fn::Join": [ | ||
"", | ||
[ | ||
"arn:", | ||
{ | ||
"Ref": "AWS::Partition" | ||
}, | ||
":iam::aws:policy/service-role/AWSIoTDeviceDefenderAudit" | ||
] | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"AuditConfigurationNotificationRole9774BAD4": { | ||
"Type": "AWS::IAM::Role", | ||
"Properties": { | ||
"AssumeRolePolicyDocument": { | ||
"Statement": [ | ||
{ | ||
"Action": "sts:AssumeRole", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": "iot.amazonaws.com" | ||
} | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
}, | ||
"Policies": [ | ||
{ | ||
"PolicyDocument": { | ||
"Statement": [ | ||
{ | ||
"Action": "sns:Publish", | ||
"Effect": "Allow", | ||
"Resource": { | ||
"Ref": "TopicBFC7AF6E" | ||
} | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
}, | ||
"PolicyName": "NotificationPolicy" | ||
} | ||
] | ||
} | ||
}, | ||
"AuditConfiguration8C793652": { | ||
"Type": "AWS::IoT::AccountAuditConfiguration", | ||
"Properties": { | ||
"AccountId": { | ||
"Ref": "AWS::AccountId" | ||
}, | ||
"AuditCheckConfigurations": { | ||
"AuthenticatedCognitoRoleOverlyPermissiveCheck": { | ||
"Enabled": true | ||
}, | ||
"CaCertificateExpiringCheck": { | ||
"Enabled": true | ||
}, | ||
"CaCertificateKeyQualityCheck": { | ||
"Enabled": true | ||
}, | ||
"ConflictingClientIdsCheck": { | ||
"Enabled": true | ||
}, | ||
"DeviceCertificateExpiringCheck": { | ||
"Enabled": true | ||
}, | ||
"DeviceCertificateKeyQualityCheck": { | ||
"Enabled": true | ||
}, | ||
"DeviceCertificateSharedCheck": { | ||
"Enabled": true | ||
}, | ||
"IntermediateCaRevokedForActiveDeviceCertificatesCheck": { | ||
"Enabled": true | ||
}, | ||
"IoTPolicyPotentialMisConfigurationCheck": { | ||
"Enabled": true | ||
}, | ||
"IotPolicyOverlyPermissiveCheck": { | ||
"Enabled": true | ||
}, | ||
"IotRoleAliasAllowsAccessToUnusedServicesCheck": { | ||
"Enabled": true | ||
}, | ||
"IotRoleAliasOverlyPermissiveCheck": { | ||
"Enabled": true | ||
}, | ||
"LoggingDisabledCheck": { | ||
"Enabled": true | ||
}, | ||
"RevokedCaCertificateStillActiveCheck": { | ||
"Enabled": true | ||
}, | ||
"RevokedDeviceCertificateStillActiveCheck": { | ||
"Enabled": true | ||
}, | ||
"UnauthenticatedCognitoRoleOverlyPermissiveCheck": { | ||
"Enabled": true | ||
} | ||
}, | ||
"AuditNotificationTargetConfigurations": { | ||
"Sns": { | ||
"Enabled": true, | ||
"RoleArn": { | ||
"Fn::GetAtt": [ | ||
"AuditConfigurationNotificationRole9774BAD4", | ||
"Arn" | ||
] | ||
}, | ||
"TargetArn": { | ||
"Ref": "TopicBFC7AF6E" | ||
} | ||
} | ||
}, | ||
"RoleArn": { | ||
"Fn::GetAtt": [ | ||
"AuditConfigurationAuditRole0FFA1461", | ||
"Arn" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"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." | ||
} | ||
] | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
packages/@aws-cdk/aws-iot-alpha/test/integ.audit-configuration.js.snapshot/cdk.out
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
packages/@aws-cdk/aws-iot-alpha/test/integ.audit-configuration.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.