Skip to content

Commit

Permalink
Merge branch 'main' into weekly-repo-metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Mar 12, 2024
2 parents 5d334a6 + 5592553 commit 638d356
Show file tree
Hide file tree
Showing 13 changed files with 1,089 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
{
"Resources": {
"Bucket83908E77": {
"Type": "AWS::S3::Bucket",
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
"GluecrawlwerRole4E24839F": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "glue.amazonaws.com"
}
}
],
"Version": "2012-10-17"
},
"ManagedPolicyArns": [
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":iam::aws:policy/service-role/AWSGlueServiceRole"
]
]
}
]
}
},
"Database": {
"Type": "AWS::Glue::Database",
"Properties": {
"CatalogId": {
"Ref": "AWS::AccountId"
},
"DatabaseInput": {
"Description": "My database",
"Name": "my-database"
}
}
},
"Crawler": {
"Type": "AWS::Glue::Crawler",
"Properties": {
"DatabaseName": {
"Ref": "Database"
},
"Role": {
"Fn::GetAtt": [
"GluecrawlwerRole4E24839F",
"Arn"
]
},
"Targets": {
"S3Targets": [
{
"Path": {
"Fn::Join": [
"",
[
"s3://",
{
"Ref": "Bucket83908E77"
},
"/"
]
]
}
}
]
}
}
},
"StateMachineRole543B9670": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "states.amazonaws.com"
}
}
],
"Version": "2012-10-17"
}
}
},
"StateMachineRoleDefaultPolicyDA5F7DA8": {
"Type": "AWS::IAM::Policy",
"Properties": {
"PolicyDocument": {
"Statement": [
{
"Action": [
"glue:GetCrawler",
"glue:StartCrawler"
],
"Effect": "Allow",
"Resource": {
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":glue:",
{
"Ref": "AWS::Region"
},
":",
{
"Ref": "AWS::AccountId"
},
":crawler/",
{
"Ref": "Crawler"
}
]
]
}
}
],
"Version": "2012-10-17"
},
"PolicyName": "StateMachineRoleDefaultPolicyDA5F7DA8",
"Roles": [
{
"Ref": "StateMachineRole543B9670"
}
]
}
},
"StateMachine81935E76": {
"Type": "AWS::StepFunctions::StateMachine",
"Properties": {
"DefinitionString": {
"Fn::Join": [
"",
[
"{\"StartAt\":\"Start Task\",\"States\":{\"Start Task\":{\"Type\":\"Pass\",\"Next\":\"Glue Crawler Task\"},\"Glue Crawler Task\":{\"Next\":\"End Task\",\"Type\":\"Task\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::aws-sdk:glue:startCrawler\",\"Parameters\":{\"Name\":\"",
{
"Ref": "Crawler"
},
"\"}},\"End Task\":{\"Type\":\"Pass\",\"End\":true}}}"
]
]
},
"RoleArn": {
"Fn::GetAtt": [
"StateMachineRole543B9670",
"Arn"
]
}
},
"DependsOn": [
"StateMachineRoleDefaultPolicyDA5F7DA8",
"StateMachineRole543B9670"
],
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
}
},
"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."
}
]
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 638d356

Please sign in to comment.