@@ -1765,3 +1765,123 @@ Mappings:
1765
1765
value: nodejs20.x
1766
1766
"
1767
1767
`;
1768
+
1769
+ exports[`Restate constructs Service Deployer overrides 1`] = `
1770
+ "Resources:
1771
+ ServiceDeployerEventHandlerServiceRoleF133584F:
1772
+ Type: 'AWS::IAM::Role'
1773
+ Properties:
1774
+ AssumeRolePolicyDocument:
1775
+ Statement:
1776
+ - Action: 'sts:AssumeRole'
1777
+ Effect: Allow
1778
+ Principal:
1779
+ Service: lambda.amazonaws.com
1780
+ Version: '2012-10-17'
1781
+ ManagedPolicyArns:
1782
+ - 'Fn::Join':
1783
+ - ''
1784
+ - - 'arn:'
1785
+ - Ref: 'AWS::Partition'
1786
+ - ':iam::aws:policy/service-role/AWSLambdaBasicExecutionRole'
1787
+ ServiceDeployerEventHandler89EAD25F:
1788
+ Type: 'AWS::Lambda::Function'
1789
+ Properties:
1790
+ Architectures:
1791
+ - arm64
1792
+ Code:
1793
+ S3Bucket: cdk-hnb659fds-assets-account-id-region
1794
+ S3Key: 306482e190035b7e874091243db3832ecc2693d3f1989445f3b7f5ffff2957fe.zip
1795
+ Description: Restate custom registration handler
1796
+ Environment:
1797
+ Variables:
1798
+ NODE_OPTIONS: '--enable-source-maps'
1799
+ Handler: index.handler
1800
+ MemorySize: 128
1801
+ Role:
1802
+ 'Fn::GetAtt':
1803
+ - ServiceDeployerEventHandlerServiceRoleF133584F
1804
+ - Arn
1805
+ Runtime: nodejs18.x
1806
+ Timeout: 180
1807
+ DependsOn:
1808
+ - ServiceDeployerEventHandlerServiceRoleF133584F
1809
+ ServiceDeployerDeploymentLogs5B8BE5D2:
1810
+ Type: 'AWS::Logs::LogGroup'
1811
+ Properties:
1812
+ LogGroupName:
1813
+ 'Fn::Join':
1814
+ - ''
1815
+ - - /aws/lambda/
1816
+ - Ref: ServiceDeployerEventHandler89EAD25F
1817
+ RetentionInDays: 30
1818
+ UpdateReplacePolicy: Retain
1819
+ DeletionPolicy: RetainExceptOnCreate
1820
+ ServiceDeployerCustomResourceProviderframeworkonEventServiceRole865AFB0C:
1821
+ Type: 'AWS::IAM::Role'
1822
+ Properties:
1823
+ AssumeRolePolicyDocument:
1824
+ Statement:
1825
+ - Action: 'sts:AssumeRole'
1826
+ Effect: Allow
1827
+ Principal:
1828
+ Service: lambda.amazonaws.com
1829
+ Version: '2012-10-17'
1830
+ ManagedPolicyArns:
1831
+ - 'Fn::Join':
1832
+ - ''
1833
+ - - 'arn:'
1834
+ - Ref: 'AWS::Partition'
1835
+ - ':iam::aws:policy/service-role/AWSLambdaBasicExecutionRole'
1836
+ ServiceDeployerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy740A65C9:
1837
+ Type: 'AWS::IAM::Policy'
1838
+ Properties:
1839
+ PolicyDocument:
1840
+ Statement:
1841
+ - Action: 'lambda:InvokeFunction'
1842
+ Effect: Allow
1843
+ Resource:
1844
+ - 'Fn::GetAtt':
1845
+ - ServiceDeployerEventHandler89EAD25F
1846
+ - Arn
1847
+ - 'Fn::Join':
1848
+ - ''
1849
+ - - 'Fn::GetAtt':
1850
+ - ServiceDeployerEventHandler89EAD25F
1851
+ - Arn
1852
+ - ':*'
1853
+ Version: '2012-10-17'
1854
+ PolicyName: >-
1855
+ ServiceDeployerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy740A65C9
1856
+ Roles:
1857
+ - Ref: >-
1858
+ ServiceDeployerCustomResourceProviderframeworkonEventServiceRole865AFB0C
1859
+ ServiceDeployerCustomResourceProviderframeworkonEvent528FE6C2:
1860
+ Type: 'AWS::Lambda::Function'
1861
+ Properties:
1862
+ Code:
1863
+ S3Bucket: cdk-hnb659fds-assets-account-id-region
1864
+ S3Key: 4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e.zip
1865
+ Description: >-
1866
+ AWS CDK resource provider framework - onEvent
1867
+ (RestateCloudStack/ServiceDeployer/CustomResourceProvider)
1868
+ Environment:
1869
+ Variables:
1870
+ USER_ON_EVENT_FUNCTION_ARN:
1871
+ 'Fn::GetAtt':
1872
+ - ServiceDeployerEventHandler89EAD25F
1873
+ - Arn
1874
+ Handler: framework.onEvent
1875
+ Role:
1876
+ 'Fn::GetAtt':
1877
+ - >-
1878
+ ServiceDeployerCustomResourceProviderframeworkonEventServiceRole865AFB0C
1879
+ - Arn
1880
+ Runtime: nodejs18.x
1881
+ Timeout: 900
1882
+ DependsOn:
1883
+ - >-
1884
+ ServiceDeployerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy740A65C9
1885
+ - ServiceDeployerCustomResourceProviderframeworkonEventServiceRole865AFB0C
1886
+ "
1887
+ `;
0 commit comments