Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(stepfunctions): distributed map state #24331

Closed
wants to merge 38 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e871544
update map state with latest fields
beck3905 Feb 21, 2023
3859b31
update map state with latest fields
beck3905 Feb 21, 2023
0f62ba3
add distributed map state
beck3905 Feb 24, 2023
a186a7a
add distributed map integration tests and update existing integration…
beck3905 Feb 24, 2023
ffe9bde
update docs
beck3905 Feb 24, 2023
572960e
update stepfunctions-api integration test
beck3905 Feb 24, 2023
57a8efe
try to fix integration tests
beck3905 Feb 25, 2023
08f42ab
fix test and update readme
beck3905 Feb 27, 2023
e041ff2
update test snapshot
beck3905 Feb 27, 2023
d8f3fc9
update readme docs
beck3905 Feb 27, 2023
788c7fc
remove obsolete comments
beck3905 Feb 27, 2023
c832557
render parameters still
beck3905 Feb 27, 2023
48fdc0e
fix readme
beck3905 Feb 27, 2023
cd6324d
uncomment test
beck3905 Feb 27, 2023
4e27158
fix syntax
beck3905 Feb 27, 2023
213bcc9
remove whitespace
beck3905 Feb 27, 2023
308016d
mostly whitespace and docstring cleanup
beck3905 Feb 27, 2023
fdcb45c
add test for deprecated parameters field
beck3905 Feb 28, 2023
6ccc0a4
add isDistributedMap function instead of instanceof
beck3905 Mar 1, 2023
7ca2f0e
fix unintended change
beck3905 Mar 1, 2023
ce19ee5
add bind method instead of requiresExecutionPermissions property
beck3905 Mar 1, 2023
6af0f39
added unit tests
beck3905 Mar 1, 2023
fcefe0c
add maxItems and other minor updates
beck3905 Mar 8, 2023
c479e42
fix iterator resultPath
beck3905 Mar 9, 2023
986ccb9
update policy add by bind method
beck3905 Mar 10, 2023
eb6e126
revert accidentally committed file
beck3905 Mar 10, 2023
edf4dc4
use explicit path properties to be consistent with how Condition hand…
beck3905 Mar 21, 2023
8d21539
fix references
beck3905 Apr 3, 2023
7b1cf47
cleanup
beck3905 Apr 3, 2023
f597e48
fix references
beck3905 Apr 4, 2023
7d36532
re-add distributed-map tests lost during merge
beck3905 Apr 4, 2023
db2ba84
update snapshot
beck3905 May 4, 2023
9d2a4de
use partition
beck3905 May 17, 2023
936497f
fix import order
beck3905 May 17, 2023
3bfd38e
fix unit test
beck3905 May 17, 2023
70f89c1
fix integration test
beck3905 May 17, 2023
3deff5e
fix whitespace
beck3905 Jun 5, 2023
e8b7352
fix whitespace
beck3905 Jun 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"30.0.0"}
{"version":"31.0.0"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"30.0.0"}
{"version":"30.1.0"}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "30.0.0",
"version": "30.1.0",
"files": {
"de2c198bbb6588ccbe00d0f0794f7217c429e3d7e3c5b4326e3b085b0d697753": {
"source": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"30.0.0"}
{"version":"30.1.0"}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "30.0.0",
"version": "30.1.0",
"testCases": {
"step-functions-restapi/DefaultTest": {
"stacks": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "30.0.0",
"version": "30.1.0",
"artifacts": {
"StepFunctionsRestApiDeploymentStack.assets": {
"type": "cdk:asset-manifest",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "30.0.0",
"version": "30.1.0",
"files": {
"21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
"source": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
"path": "step-functions-restapi/DefaultTest/Default",
"constructInfo": {
"fqn": "constructs.Construct",
"version": "10.1.237"
"version": "10.1.252"
}
},
"DeployAssert": {
Expand Down Expand Up @@ -546,7 +546,7 @@
"path": "Tree",
"constructInfo": {
"fqn": "constructs.Construct",
"version": "10.1.237"
"version": "10.1.252"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"30.0.0"}
{"version":"30.1.0"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"30.0.0"}
{"version":"30.1.0"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"30.0.0"}
{"version":"30.1.0"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"31.0.0"}
{"version":"31.0.0"}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "30.0.0",
"version": "30.1.0",
"files": {
"88187762ebb3676ec68ded03ce92c045563205c6497ae5a104f13a32dbf4ef43": {
"source": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "30.0.0",
"version": "30.1.0",
"testCases": {
"integ.custom-state": {
"stacks": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "30.0.0",
"version": "30.1.0",
"artifacts": {
"aws-stepfunctions-custom-state-integ.assets": {
"type": "cdk:asset-manifest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"path": "Tree",
"constructInfo": {
"fqn": "constructs.Construct",
"version": "10.1.237"
"version": "10.1.252"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"version": "31.0.0",
"files": {
"ae370e1010629b78f494346f49ceef3ab2875718f20e6c808114e6aa770c7bf3": {
"source": {
"path": "asset.ae370e1010629b78f494346f49ceef3ab2875718f20e6c808114e6aa770c7bf3.bundle",
"packaging": "zip"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "ae370e1010629b78f494346f49ceef3ab2875718f20e6c808114e6aa770c7bf3.zip",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
},
"428d45d78cd60f636093f2f73d8319337004afea0fa854410fdacdcce602d3fc": {
"source": {
"path": "DistributedMapDefaultTestDeployAssertFD6CBCC4.template.json",
"packaging": "file"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "428d45d78cd60f636093f2f73d8319337004afea0fa854410fdacdcce602d3fc.json",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
}
},
"dockerImages": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,245 @@
{
"Resources": {
"AwsApiCallStepFunctionsdescribeStateMachinec5cc0786542148808c24d8ebf111c7aa": {
"Type": "Custom::DeployAssert@SdkCallStepFunctionsdescribeStateMachin",
"Properties": {
"ServiceToken": {
"Fn::GetAtt": [
"SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F",
"Arn"
]
},
"service": "StepFunctions",
"api": "describeStateMachine",
"expected": "{\"$ObjectLike\":{\"status\":\"ACTIVE\"}}",
"parameters": {
"stateMachineArn": {
"Fn::ImportValue": "aws-stepfunctions-map-integ:ExportsOutputRefStateMachine2E01A3A5BA46F753"
}
},
"flattenResponse": "false",
"salt": "1684365613545"
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
"SingletonFunction1488541a7b23466481b69b4408076b81Role37ABCE73": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "lambda.amazonaws.com"
}
}
]
},
"ManagedPolicyArns": [
{
"Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
}
],
"Policies": [
{
"PolicyName": "Inline",
"PolicyDocument": {
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"states:DescribeStateMachine"
],
"Effect": "Allow",
"Resource": [
"*"
]
},
{
"Action": [
"s3:PutObject"
],
"Effect": "Allow",
"Resource": [
"*"
]
},
{
"Action": [
"states:StartExecution"
],
"Effect": "Allow",
"Resource": [
"*"
]
},
{
"Action": [
"states:DescribeExecution"
],
"Effect": "Allow",
"Resource": [
"*"
]
}
]
}
}
]
}
},
"SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F": {
"Type": "AWS::Lambda::Function",
"Properties": {
"Runtime": "nodejs14.x",
"Code": {
"S3Bucket": {
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
},
"S3Key": "ae370e1010629b78f494346f49ceef3ab2875718f20e6c808114e6aa770c7bf3.zip"
},
"Timeout": 120,
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"SingletonFunction1488541a7b23466481b69b4408076b81Role37ABCE73",
"Arn"
]
}
}
},
"AwsApiCallS3putObject9f7ed865afc47100b3c2a9fea2cf51ee": {
"Type": "Custom::DeployAssert@SdkCallS3putObject",
"Properties": {
"ServiceToken": {
"Fn::GetAtt": [
"SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F",
"Arn"
]
},
"service": "S3",
"api": "putObject",
"parameters": {
"Bucket": {
"Fn::ImportValue": "aws-stepfunctions-map-integ:ExportsOutputRefBucket83908E7781C90AC0"
},
"Key": "my-key.csv",
"Body": "a,b,c\n1,2,3\n4,5,6"
},
"flattenResponse": "false",
"salt": "1684365613545"
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
"AwsApiCallStepFunctionsstartExecutionc5cc0786542148808c24d8ebf111c7aa": {
"Type": "Custom::DeployAssert@SdkCallStepFunctionsstartExecution",
"Properties": {
"ServiceToken": {
"Fn::GetAtt": [
"SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F",
"Arn"
]
},
"service": "StepFunctions",
"api": "startExecution",
"parameters": {
"stateMachineArn": {
"Fn::ImportValue": "aws-stepfunctions-map-integ:ExportsOutputRefStateMachine2E01A3A5BA46F753"
}
},
"flattenResponse": "true",
"salt": "1684365613545"
},
"DependsOn": [
"AwsApiCallS3putObject9f7ed865afc47100b3c2a9fea2cf51ee"
],
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
"AwsApiCallStepFunctionsdescribeExecution7e7cfa5e3c60aef760b5fbff9448d868": {
"Type": "Custom::DeployAssert@SdkCallStepFunctionsdescribeExecution",
"Properties": {
"ServiceToken": {
"Fn::GetAtt": [
"SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F",
"Arn"
]
},
"service": "StepFunctions",
"api": "describeExecution",
"expected": "{\"$ObjectLike\":{\"status\":\"SUCCEEDED\"}}",
"parameters": {
"executionArn": {
"Fn::GetAtt": [
"AwsApiCallStepFunctionsstartExecutionc5cc0786542148808c24d8ebf111c7aa",
"apiCallResponse.executionArn"
]
}
},
"flattenResponse": "false",
"salt": "1684365613546"
},
"DependsOn": [
"AwsApiCallStepFunctionsstartExecutionc5cc0786542148808c24d8ebf111c7aa"
],
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
}
},
"Outputs": {
"AssertionResultsAwsApiCallStepFunctionsdescribeStateMachinec5cc0786542148808c24d8ebf111c7aa": {
"Value": {
"Fn::GetAtt": [
"AwsApiCallStepFunctionsdescribeStateMachinec5cc0786542148808c24d8ebf111c7aa",
"assertion"
]
}
},
"AssertionResultsAwsApiCallStepFunctionsdescribeExecution7e7cfa5e3c60aef760b5fbff9448d868": {
"Value": {
"Fn::GetAtt": [
"AwsApiCallStepFunctionsdescribeExecution7e7cfa5e3c60aef760b5fbff9448d868",
"assertion"
]
}
}
},
"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."
}
]
}
}
}
Loading