serverless-state.json 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. {
  2. "service": {
  3. "service": "ambt-anoicos",
  4. "serviceObject": {
  5. "name": "ambt-anoicos"
  6. },
  7. "provider": {
  8. "name": "aws",
  9. "runtime": "python3.8",
  10. "lambdaHashingVersion": "20201221",
  11. "stage": "dev",
  12. "region": "ap-northeast-2",
  13. "versionFunctions": true,
  14. "compiledCloudFormationTemplate": {
  15. "AWSTemplateFormatVersion": "2010-09-09",
  16. "Description": "The AWS CloudFormation template for this Serverless application",
  17. "Resources": {
  18. "ServerlessDeploymentBucket": {
  19. "Type": "AWS::S3::Bucket",
  20. "Properties": {
  21. "BucketEncryption": {
  22. "ServerSideEncryptionConfiguration": [
  23. {
  24. "ServerSideEncryptionByDefault": {
  25. "SSEAlgorithm": "AES256"
  26. }
  27. }
  28. ]
  29. }
  30. }
  31. },
  32. "ServerlessDeploymentBucketPolicy": {
  33. "Type": "AWS::S3::BucketPolicy",
  34. "Properties": {
  35. "Bucket": {
  36. "Ref": "ServerlessDeploymentBucket"
  37. },
  38. "PolicyDocument": {
  39. "Statement": [
  40. {
  41. "Action": "s3:*",
  42. "Effect": "Deny",
  43. "Principal": "*",
  44. "Resource": [
  45. {
  46. "Fn::Join": [
  47. "",
  48. [
  49. "arn:",
  50. {
  51. "Ref": "AWS::Partition"
  52. },
  53. ":s3:::",
  54. {
  55. "Ref": "ServerlessDeploymentBucket"
  56. },
  57. "/*"
  58. ]
  59. ]
  60. },
  61. {
  62. "Fn::Join": [
  63. "",
  64. [
  65. "arn:",
  66. {
  67. "Ref": "AWS::Partition"
  68. },
  69. ":s3:::",
  70. {
  71. "Ref": "ServerlessDeploymentBucket"
  72. }
  73. ]
  74. ]
  75. }
  76. ],
  77. "Condition": {
  78. "Bool": {
  79. "aws:SecureTransport": false
  80. }
  81. }
  82. }
  83. ]
  84. }
  85. }
  86. },
  87. "NumpyLogGroup": {
  88. "Type": "AWS::Logs::LogGroup",
  89. "Properties": {
  90. "LogGroupName": "/aws/lambda/ambt-anoicos-dev-numpy"
  91. }
  92. },
  93. "IamRoleLambdaExecution": {
  94. "Type": "AWS::IAM::Role",
  95. "Properties": {
  96. "AssumeRolePolicyDocument": {
  97. "Version": "2012-10-17",
  98. "Statement": [
  99. {
  100. "Effect": "Allow",
  101. "Principal": {
  102. "Service": [
  103. "lambda.amazonaws.com"
  104. ]
  105. },
  106. "Action": [
  107. "sts:AssumeRole"
  108. ]
  109. }
  110. ]
  111. },
  112. "Policies": [
  113. {
  114. "PolicyName": {
  115. "Fn::Join": [
  116. "-",
  117. [
  118. "ambt-anoicos",
  119. "dev",
  120. "lambda"
  121. ]
  122. ]
  123. },
  124. "PolicyDocument": {
  125. "Version": "2012-10-17",
  126. "Statement": [
  127. {
  128. "Effect": "Allow",
  129. "Action": [
  130. "logs:CreateLogStream",
  131. "logs:CreateLogGroup"
  132. ],
  133. "Resource": [
  134. {
  135. "Fn::Sub": "arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/ambt-anoicos-dev*:*"
  136. }
  137. ]
  138. },
  139. {
  140. "Effect": "Allow",
  141. "Action": [
  142. "logs:PutLogEvents"
  143. ],
  144. "Resource": [
  145. {
  146. "Fn::Sub": "arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/ambt-anoicos-dev*:*:*"
  147. }
  148. ]
  149. }
  150. ]
  151. }
  152. }
  153. ],
  154. "Path": "/",
  155. "RoleName": {
  156. "Fn::Join": [
  157. "-",
  158. [
  159. "ambt-anoicos",
  160. "dev",
  161. {
  162. "Ref": "AWS::Region"
  163. },
  164. "lambdaRole"
  165. ]
  166. ]
  167. }
  168. }
  169. },
  170. "PythonRequirementsLambdaLayer": {
  171. "Type": "AWS::Lambda::LayerVersion",
  172. "Properties": {
  173. "Content": {
  174. "S3Bucket": {
  175. "Ref": "ServerlessDeploymentBucket"
  176. },
  177. "S3Key": "serverless/ambt-anoicos/dev/1623974011018-2021-06-17T23:53:31.018Z/pythonRequirements.zip"
  178. },
  179. "LayerName": "ambt-anoicos-dev-python-requirements",
  180. "Description": "Python requirements generated by serverless-python-requirements.",
  181. "CompatibleRuntimes": [
  182. "python3.8"
  183. ]
  184. }
  185. },
  186. "NumpyLambdaFunction": {
  187. "Type": "AWS::Lambda::Function",
  188. "Properties": {
  189. "Code": {
  190. "S3Bucket": {
  191. "Ref": "ServerlessDeploymentBucket"
  192. },
  193. "S3Key": "serverless/ambt-anoicos/dev/1623974011018-2021-06-17T23:53:31.018Z/ambt-anoicos.zip"
  194. },
  195. "Handler": "handler.main",
  196. "Runtime": "python3.8",
  197. "FunctionName": "ambt-anoicos-dev-numpy",
  198. "MemorySize": 1024,
  199. "Timeout": 6,
  200. "Role": {
  201. "Fn::GetAtt": [
  202. "IamRoleLambdaExecution",
  203. "Arn"
  204. ]
  205. },
  206. "Layers": [
  207. {
  208. "Ref": "PythonRequirementsLambdaLayer"
  209. }
  210. ]
  211. },
  212. "DependsOn": [
  213. "NumpyLogGroup"
  214. ]
  215. },
  216. "NumpyLambdaVersion4nqiRdtNg2AbGSGlzGV12aNY2OuUh7esxvqofgY": {
  217. "Type": "AWS::Lambda::Version",
  218. "DeletionPolicy": "Retain",
  219. "Properties": {
  220. "FunctionName": {
  221. "Ref": "NumpyLambdaFunction"
  222. },
  223. "CodeSha256": "IVZ5bTPa382jcJBMQHlQd0Zn9gjSEEfl2vSmrUqAhWk="
  224. }
  225. }
  226. },
  227. "Outputs": {
  228. "ServerlessDeploymentBucketName": {
  229. "Value": {
  230. "Ref": "ServerlessDeploymentBucket"
  231. },
  232. "Export": {
  233. "Name": "sls-ambt-anoicos-dev-ServerlessDeploymentBucketName"
  234. }
  235. },
  236. "PythonRequirementsLambdaLayerQualifiedArn": {
  237. "Description": "Current Lambda layer version",
  238. "Value": {
  239. "Ref": "PythonRequirementsLambdaLayer"
  240. },
  241. "Export": {
  242. "Name": "sls-ambt-anoicos-dev-PythonRequirementsLambdaLayerQualifiedArn"
  243. }
  244. },
  245. "PythonRequirementsLambdaLayerHash": {
  246. "Description": "Current Lambda layer hash",
  247. "Value": "35b9f3a28aa474ce779bef4f48b8e95d200c045e",
  248. "Export": {
  249. "Name": "sls-ambt-anoicos-dev-PythonRequirementsLambdaLayerHash"
  250. }
  251. },
  252. "PythonRequirementsLambdaLayerS3Key": {
  253. "Description": "Current Lambda layer S3Key",
  254. "Value": "serverless/ambt-anoicos/dev/1623974011018-2021-06-17T23:53:31.018Z/pythonRequirements.zip",
  255. "Export": {
  256. "Name": "sls-ambt-anoicos-dev-PythonRequirementsLambdaLayerS3Key"
  257. }
  258. },
  259. "NumpyLambdaFunctionQualifiedArn": {
  260. "Description": "Current Lambda function version",
  261. "Value": {
  262. "Ref": "NumpyLambdaVersion4nqiRdtNg2AbGSGlzGV12aNY2OuUh7esxvqofgY"
  263. },
  264. "Export": {
  265. "Name": "sls-ambt-anoicos-dev-NumpyLambdaFunctionQualifiedArn"
  266. }
  267. }
  268. }
  269. },
  270. "coreCloudFormationTemplate": {
  271. "AWSTemplateFormatVersion": "2010-09-09",
  272. "Description": "The AWS CloudFormation template for this Serverless application",
  273. "Resources": {
  274. "ServerlessDeploymentBucket": {
  275. "Type": "AWS::S3::Bucket",
  276. "Properties": {
  277. "BucketEncryption": {
  278. "ServerSideEncryptionConfiguration": [
  279. {
  280. "ServerSideEncryptionByDefault": {
  281. "SSEAlgorithm": "AES256"
  282. }
  283. }
  284. ]
  285. }
  286. }
  287. },
  288. "ServerlessDeploymentBucketPolicy": {
  289. "Type": "AWS::S3::BucketPolicy",
  290. "Properties": {
  291. "Bucket": {
  292. "Ref": "ServerlessDeploymentBucket"
  293. },
  294. "PolicyDocument": {
  295. "Statement": [
  296. {
  297. "Action": "s3:*",
  298. "Effect": "Deny",
  299. "Principal": "*",
  300. "Resource": [
  301. {
  302. "Fn::Join": [
  303. "",
  304. [
  305. "arn:",
  306. {
  307. "Ref": "AWS::Partition"
  308. },
  309. ":s3:::",
  310. {
  311. "Ref": "ServerlessDeploymentBucket"
  312. },
  313. "/*"
  314. ]
  315. ]
  316. },
  317. {
  318. "Fn::Join": [
  319. "",
  320. [
  321. "arn:",
  322. {
  323. "Ref": "AWS::Partition"
  324. },
  325. ":s3:::",
  326. {
  327. "Ref": "ServerlessDeploymentBucket"
  328. }
  329. ]
  330. ]
  331. }
  332. ],
  333. "Condition": {
  334. "Bool": {
  335. "aws:SecureTransport": false
  336. }
  337. }
  338. }
  339. ]
  340. }
  341. }
  342. }
  343. },
  344. "Outputs": {
  345. "ServerlessDeploymentBucketName": {
  346. "Value": {
  347. "Ref": "ServerlessDeploymentBucket"
  348. }
  349. }
  350. }
  351. },
  352. "vpc": {}
  353. },
  354. "custom": {
  355. "pythonRequirements": {
  356. "dockerizePip": "non-linux",
  357. "slim": true,
  358. "layer": true,
  359. "noDeploy": [
  360. "pip",
  361. "setuptool",
  362. "boto3",
  363. "botocore",
  364. "jmespath",
  365. "s3transfer",
  366. "dateutil",
  367. "docutils",
  368. "python_dateutil",
  369. "six",
  370. "urllib3"
  371. ]
  372. }
  373. },
  374. "plugins": [
  375. "serverless-python-requirements"
  376. ],
  377. "pluginsData": {},
  378. "functions": {
  379. "numpy": {
  380. "handler": "handler.main",
  381. "layers": {
  382. "$ref": "$[\"service\"][\"provider\"][\"compiledCloudFormationTemplate\"][\"Resources\"][\"NumpyLambdaFunction\"][\"Properties\"][\"Layers\"]"
  383. },
  384. "events": [],
  385. "name": "ambt-anoicos-dev-numpy",
  386. "package": {},
  387. "memory": 1024,
  388. "timeout": 6,
  389. "runtime": "python3.8",
  390. "vpc": {},
  391. "versionLogicalId": "NumpyLambdaVersion4nqiRdtNg2AbGSGlzGV12aNY2OuUh7esxvqofgY"
  392. }
  393. },
  394. "configValidationMode": "warn",
  395. "serviceFilename": "serverless.yml",
  396. "initialServerlessConfig": {
  397. "service": {
  398. "$ref": "$[\"service\"][\"serviceObject\"]"
  399. },
  400. "frameworkVersion": "2",
  401. "provider": {
  402. "$ref": "$[\"service\"][\"provider\"]"
  403. },
  404. "functions": {
  405. "$ref": "$[\"service\"][\"functions\"]"
  406. },
  407. "plugins": {
  408. "$ref": "$[\"service\"][\"plugins\"]"
  409. },
  410. "custom": {
  411. "$ref": "$[\"service\"][\"custom\"]"
  412. }
  413. },
  414. "layers": {
  415. "pythonRequirements": {
  416. "artifact": ".serverless\\pythonRequirements.zip",
  417. "name": "ambt-anoicos-dev-python-requirements",
  418. "description": "Python requirements generated by serverless-python-requirements.",
  419. "compatibleRuntimes": {
  420. "$ref": "$[\"service\"][\"provider\"][\"compiledCloudFormationTemplate\"][\"Resources\"][\"PythonRequirementsLambdaLayer\"][\"Properties\"][\"CompatibleRuntimes\"]"
  421. },
  422. "package": {}
  423. }
  424. },
  425. "isDashboardMonitoringPreconfigured": false,
  426. "artifact": "C:\\Users\\icontrols\\PycharmProjects\\ambt-anoicos\\.serverless\\ambt-anoicos.zip"
  427. },
  428. "package": {
  429. "artifactDirectoryName": "serverless/ambt-anoicos/dev/1623974011018-2021-06-17T23:53:31.018Z",
  430. "artifact": "ambt-anoicos.zip"
  431. }
  432. }