|
12 | 12 | "Type": "TimeBasedLinear"
|
13 | 13 | }
|
14 | 14 | }
|
| 15 | + }, |
| 16 | + "CustomConfigDeploymentConfigE9E1F384": { |
| 17 | + "Type": "Custom::AWS", |
| 18 | + "Properties": { |
| 19 | + "ServiceToken": { |
| 20 | + "Fn::GetAtt": [ |
| 21 | + "AWS679f53fac002430cb0da5b7982bd22872D164C4C", |
| 22 | + "Arn" |
| 23 | + ] |
| 24 | + }, |
| 25 | + "Create": "{\"service\":\"CodeDeploy\",\"action\":\"createDeploymentConfig\",\"parameters\":{\"deploymentConfigName\":\"hello\",\"computePlatform\":\"Lambda\",\"trafficRoutingConfig\":{\"type\":\"TimeBasedLinear\",\"timeBasedLinear\":{\"linearInterval\":1,\"linearPercentage\":5}}},\"physicalResourceId\":{\"id\":\"hello\"}}", |
| 26 | + "Update": "{\"service\":\"CodeDeploy\",\"action\":\"createDeploymentConfig\",\"parameters\":{\"deploymentConfigName\":\"hello\",\"computePlatform\":\"Lambda\",\"trafficRoutingConfig\":{\"type\":\"TimeBasedLinear\",\"timeBasedLinear\":{\"linearInterval\":1,\"linearPercentage\":5}}},\"physicalResourceId\":{\"id\":\"hello\"}}", |
| 27 | + "Delete": "{\"service\":\"CodeDeploy\",\"action\":\"deleteDeploymentConfig\",\"parameters\":{\"deploymentConfigName\":\"hello\"}}", |
| 28 | + "InstallLatestAwsSdk": false |
| 29 | + }, |
| 30 | + "DependsOn": [ |
| 31 | + "CustomConfigDeploymentConfigCustomResourcePolicy0426B684" |
| 32 | + ], |
| 33 | + "UpdateReplacePolicy": "Delete", |
| 34 | + "DeletionPolicy": "Delete" |
| 35 | + }, |
| 36 | + "CustomConfigDeploymentConfigCustomResourcePolicy0426B684": { |
| 37 | + "Type": "AWS::IAM::Policy", |
| 38 | + "Properties": { |
| 39 | + "PolicyDocument": { |
| 40 | + "Statement": [ |
| 41 | + { |
| 42 | + "Action": [ |
| 43 | + "codedeploy:CreateDeploymentConfig", |
| 44 | + "codedeploy:DeleteDeploymentConfig" |
| 45 | + ], |
| 46 | + "Effect": "Allow", |
| 47 | + "Resource": "*" |
| 48 | + } |
| 49 | + ], |
| 50 | + "Version": "2012-10-17" |
| 51 | + }, |
| 52 | + "PolicyName": "CustomConfigDeploymentConfigCustomResourcePolicy0426B684", |
| 53 | + "Roles": [ |
| 54 | + { |
| 55 | + "Ref": "AWS679f53fac002430cb0da5b7982bd2287ServiceRoleC1EA0FF2" |
| 56 | + } |
| 57 | + ] |
| 58 | + } |
| 59 | + }, |
| 60 | + "AWS679f53fac002430cb0da5b7982bd2287ServiceRoleC1EA0FF2": { |
| 61 | + "Type": "AWS::IAM::Role", |
| 62 | + "Properties": { |
| 63 | + "AssumeRolePolicyDocument": { |
| 64 | + "Statement": [ |
| 65 | + { |
| 66 | + "Action": "sts:AssumeRole", |
| 67 | + "Effect": "Allow", |
| 68 | + "Principal": { |
| 69 | + "Service": "lambda.amazonaws.com" |
| 70 | + } |
| 71 | + } |
| 72 | + ], |
| 73 | + "Version": "2012-10-17" |
| 74 | + }, |
| 75 | + "ManagedPolicyArns": [ |
| 76 | + { |
| 77 | + "Fn::Join": [ |
| 78 | + "", |
| 79 | + [ |
| 80 | + "arn:", |
| 81 | + { |
| 82 | + "Ref": "AWS::Partition" |
| 83 | + }, |
| 84 | + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" |
| 85 | + ] |
| 86 | + ] |
| 87 | + } |
| 88 | + ] |
| 89 | + } |
| 90 | + }, |
| 91 | + "AWS679f53fac002430cb0da5b7982bd22872D164C4C": { |
| 92 | + "Type": "AWS::Lambda::Function", |
| 93 | + "Properties": { |
| 94 | + "Code": { |
| 95 | + "S3Bucket": { |
| 96 | + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" |
| 97 | + }, |
| 98 | + "S3Key": "51fc32183f8be2ed4acc5164067a61d6763acbd372aeba432deb95b9ac5b5038.zip" |
| 99 | + }, |
| 100 | + "Handler": "index.handler", |
| 101 | + "Role": { |
| 102 | + "Fn::GetAtt": [ |
| 103 | + "AWS679f53fac002430cb0da5b7982bd2287ServiceRoleC1EA0FF2", |
| 104 | + "Arn" |
| 105 | + ] |
| 106 | + }, |
| 107 | + "Runtime": "nodejs18.x", |
| 108 | + "Timeout": 120 |
| 109 | + }, |
| 110 | + "DependsOn": [ |
| 111 | + "AWS679f53fac002430cb0da5b7982bd2287ServiceRoleC1EA0FF2" |
| 112 | + ] |
15 | 113 | }
|
16 | 114 | },
|
17 | 115 | "Parameters": {
|
|
0 commit comments