Skip to content

Commit

Permalink
Adding support for KMS in StateMachine and Activity resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaid Saraswat committed Aug 7, 2024
1 parent f9b5d7a commit 3e3bf6c
Show file tree
Hide file tree
Showing 23 changed files with 1,673 additions and 322 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,86 @@
{
"Resources": {
"StateMachineWithAOKEncryptionConfigurationRoleA5E4221F": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "states.amazonaws.com"
}
}
],
"Version": "2012-10-17"
}
}
},
"StateMachineWithAOKEncryptionConfiguration934313C7": {
"Type": "AWS::StepFunctions::StateMachine",
"Properties": {
"DefinitionString": "{\"StartAt\":\"Pass\",\"States\":{\"Pass\":{\"Type\":\"Pass\",\"End\":true}}}",
"EncryptionConfiguration": {
"Type": "AWS_OWNED_KEY"
},
"RoleArn": {
"Fn::GetAtt": [
"StateMachineWithAOKEncryptionConfigurationRoleA5E4221F",
"Arn"
]
},
"StateMachineName": "StateMachineWithCMKEncryptionConfiguration",
"StateMachineType": "STANDARD"
},
"DependsOn": [
"StateMachineWithAOKEncryptionConfigurationRoleA5E4221F"
],
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
"ActivityWithAOKEncryptionConfiguration065A6DC5": {
"Type": "AWS::StepFunctions::Activity",
"Properties": {
"EncryptionConfiguration": {
"Type": "AWS_OWNED_KEY"
},
"Name": "ActivityWithCMKEncryptionConfiguration"
}
}
},
"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 3e3bf6c

Please sign in to comment.