Guest User

Functionbeat deploy log

a guest
Jun 15th, 2021
24
75 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 2021-06-15T13:42:16.620+0100 INFO instance/beat.go:665 Home path: [/Users/xxx/fnbeat/functionbeat-7.13.1-darwin-x86_64] Config path: [/Users/xxx/fnbeat/functionbeat-7.13.1-darwin-x86_64] Data path: [/tmp] Logs path: [/tmp/logs]
  2. 2021-06-15T13:42:16.621+0100 DEBUG [beat] instance/beat.go:723 Beat metadata path: /tmp/meta.json
  3. 2021-06-15T13:42:16.622+0100 INFO instance/beat.go:673 Beat ID: 6b9b1667-c51c-49f2-bc07-dc563b218057
  4. 2021-06-15T13:42:16.625+0100 DEBUG [add_cloud_metadata] add_cloud_metadata/providers.go:128 add_cloud_metadata: starting to fetch metadata, timeout=3s
  5. 2021-06-15T13:42:19.631+0100 DEBUG [add_cloud_metadata] add_cloud_metadata/providers.go:172 add_cloud_metadata: timed-out waiting for all responses
  6. 2021-06-15T13:42:19.631+0100 DEBUG [add_cloud_metadata] add_cloud_metadata/providers.go:131 add_cloud_metadata: fetchMetadata ran for 3.005645495s
  7. 2021-06-15T13:42:19.633+0100 INFO [add_cloud_metadata] add_cloud_metadata/add_cloud_metadata.go:101 add_cloud_metadata: hosting provider type not detected.
  8. 2021-06-15T13:42:19.633+0100 DEBUG [processors] processors/processor.go:120 Generated new processors: add_host_metadata=[netinfo.enabled=[true], cache.ttl=[5m0s]], add_cloud_metadata={}
  9. 2021-06-15T13:42:19.638+0100 DEBUG [getSharedCredentialProfile] aws/credentials.go:106 Using shared credential profile for AWS credential
  10. 2021-06-15T13:42:19.638+0100 DEBUG [cli-handler] cmd/cli_handler.go:52 Starting deploy for: cloudwatch
  11. 2021-06-15T13:42:19.638+0100 DEBUG [aws] aws/cli_manager.go:125 Deploying function: cloudwatch
  12. 2021-06-15T13:42:19.639+0100 DEBUG [provider] aws/template_builder.go:90 Compressing all assets into an artifact
  13. 2021-06-15T13:42:21.631+0100 DEBUG [provider] aws/template_builder.go:96 Compression is successful (zip size: 23801282 bytes)
  14. 2021-06-15T13:42:21.690+0100 INFO [provider] aws/template_builder.go:155 No role is configured for function cloudwatch, creating a custom role.
  15. 2021-06-15T13:42:21.694+0100 DEBUG [aws] aws/cli_manager.go:69 Using cloudformation template:
  16. {
  17. "AWSTemplateFormatVersion": "2010-09-09",
  18. "Resources": {
  19. "fnbcloudwatch": {
  20. "Properties": {
  21. "Code": {
  22. "S3Bucket": "xxx-fnbeat",
  23. "S3Key": "functionbeat-deployment/cloudwatch/-G81FRht03c4RIJTFn723sDX9qiwo0IyA5OzeAZyifw/functionbeat.zip"
  24. },
  25. "Description": "lambda function for cloudwatch logs",
  26. "Environment": {
  27. "Variables": {
  28. "BEAT_STRICT_PERMS": "false",
  29. "ENABLED_FUNCTIONS": "cloudwatch"
  30. }
  31. },
  32. "FunctionName": "cloudwatch",
  33. "Handler": "functionbeat-aws",
  34. "MemorySize": 128,
  35. "ReservedConcurrentExecutions": 5,
  36. "Role": {
  37. "Fn::GetAtt": [
  38. "fnbcloudwatchIAMRoleLambdaExecution",
  39. "Arn"
  40. ]
  41. },
  42. "Runtime": "go1.x",
  43. "Timeout": 3
  44. },
  45. "Type": "AWS::Lambda::Function"
  46. },
  47. "fnbcloudwatchIAMRoleLambdaExecution": {
  48. "Properties": {
  49. "AssumeRolePolicyDocument": {
  50. "Statement": [
  51. {
  52. "Action": "sts:AssumeRole",
  53. "Effect": "Allow",
  54. "Principal": {
  55. "Service": {
  56. "Fn::Join": [
  57. "",
  58. [
  59. "lambda.",
  60. {
  61. "Ref": "AWS::URLSuffix"
  62. }
  63. ]
  64. ]
  65. }
  66. }
  67. }
  68. ]
  69. },
  70. "Path": "/",
  71. "Policies": [
  72. {
  73. "PolicyDocument": {
  74. "Statement": [
  75. {
  76. "Action": [
  77. "logs:CreateLogStream",
  78. "logs:PutLogEvents"
  79. ],
  80. "Effect": "Allow",
  81. "Resource": [
  82. {
  83. "Fn::Sub": "arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/cloudwatch:*"
  84. }
  85. ]
  86. }
  87. ]
  88. },
  89. "PolicyName": {
  90. "Fn::Join": [
  91. "-",
  92. [
  93. "fnb",
  94. "lambda",
  95. "cloudwatch"
  96. ]
  97. ]
  98. }
  99. }
  100. ],
  101. "RoleName": "functionbeat-lambda-cloudwatch-eyAiUmVmIjogIkFXUzo6UmVnaW9uIiB9"
  102. },
  103. "Type": "AWS::IAM::Role"
  104. },
  105. "fnbcloudwatchLogGroup": {
  106. "Properties": {
  107. "LogGroupName": "/aws/lambda/cloudwatch"
  108. },
  109. "Type": "AWS::Logs::LogGroup"
  110. },
  111. "fnbcloudwatchPermission0": {
  112. "Properties": {
  113. "Action": "lambda:InvokeFunction",
  114. "FunctionName": {
  115. "Fn::GetAtt": [
  116. "fnbcloudwatch",
  117. "Arn"
  118. ]
  119. },
  120. "Principal": {
  121. "Fn::Join": [
  122. "",
  123. [
  124. "logs.",
  125. {
  126. "Ref": "AWS::Region"
  127. },
  128. ".",
  129. {
  130. "Ref": "AWS::URLSuffix"
  131. }
  132. ]
  133. ]
  134. },
  135. "SourceArn": {
  136. "Fn::Join": [
  137. "",
  138. [
  139. "arn:",
  140. {
  141. "Ref": "AWS::Partition"
  142. },
  143. ":logs:",
  144. {
  145. "Ref": "AWS::Region"
  146. },
  147. ":",
  148. {
  149. "Ref": "AWS::AccountId"
  150. },
  151. ":log-group:",
  152. "/aws/lambda/ec2-cleanup",
  153. ":*"
  154. ]
  155. ]
  156. }
  157. },
  158. "Type": "AWS::Lambda::Permission"
  159. },
  160. "fnbcloudwatchSFawslambdaec2cleanup": {
  161. "Properties": {
  162. "DestinationArn": {
  163. "Fn::GetAtt": [
  164. "fnbcloudwatch",
  165. "Arn"
  166. ]
  167. },
  168. "FilterPattern": "",
  169. "LogGroupName": "/aws/lambda/ec2-cleanup"
  170. },
  171. "Type": "AWS::Logs::SubscriptionFilter"
  172. }
  173. }
  174. }
  175. 2021-06-15T13:42:21.695+0100 DEBUG [aws.executor] executor/executor.go:53 The executor is executing '6' operations for converging state
  176. 2021-06-15T13:42:21.695+0100 DEBUG [aws] aws/op_ensure_bucket.go:33 Verifying presence of S3 bucket: xxx-fnbeat
  177. 2021-06-15T13:42:22.870+0100 DEBUG [aws] aws/op_upload_to_bucket.go:44 Uploading file 'functionbeat-deployment/cloudwatch/-G81FRht03c4RIJTFn723sDX9qiwo0IyA5OzeAZyifw/functionbeat.zip' to bucket 'xxx-fnbeat' with size 23801282 bytes
  178. 2021-06-15T13:42:33.928+0100 DEBUG [aws] aws/op_upload_to_bucket.go:57 Upload successful
  179. 2021-06-15T13:42:33.929+0100 DEBUG [aws] aws/op_upload_to_bucket.go:44 Uploading file 'functionbeat-deployment/cloudwatch/bHwosKG1s9moRQfLd4W30IUDlEy4znBqXv_wScQiGLQ/cloudformation-template-create.json' to bucket 'xxx-fnbeat' with size 4011 bytes
  180. 2021-06-15T13:42:34.084+0100 DEBUG [aws] aws/op_upload_to_bucket.go:57 Upload successful
  181. 2021-06-15T13:42:34.084+0100 DEBUG [aws] aws/op_cloudformation.go:48 Creating CloudFormation create stack request
  182. 2021-06-15T13:42:35.048+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::CloudFormation::Stack, LogicalResourceId: fnb-cloudwatch-stack, ResourceStatus: CREATE_IN_PROGRESS, ResourceStatusReason: User Initiated
  183. 2021-06-15T13:42:39.299+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::IAM::Role, LogicalResourceId: fnbcloudwatchIAMRoleLambdaExecution, ResourceStatus: CREATE_IN_PROGRESS
  184. 2021-06-15T13:42:39.299+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Logs::LogGroup, LogicalResourceId: fnbcloudwatchLogGroup, ResourceStatus: CREATE_IN_PROGRESS
  185. 2021-06-15T13:42:41.429+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::IAM::Role, LogicalResourceId: fnbcloudwatchIAMRoleLambdaExecution, ResourceStatus: CREATE_IN_PROGRESS, ResourceStatusReason: Resource creation Initiated
  186. 2021-06-15T13:42:41.429+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Logs::LogGroup, LogicalResourceId: fnbcloudwatchLogGroup, ResourceStatus: CREATE_IN_PROGRESS, ResourceStatusReason: Resource creation Initiated
  187. 2021-06-15T13:42:41.429+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Logs::LogGroup, LogicalResourceId: fnbcloudwatchLogGroup, ResourceStatus: CREATE_COMPLETE
  188. 2021-06-15T13:42:56.360+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::IAM::Role, LogicalResourceId: fnbcloudwatchIAMRoleLambdaExecution, ResourceStatus: CREATE_COMPLETE
  189. 2021-06-15T13:42:58.498+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Lambda::Function, LogicalResourceId: fnbcloudwatch, ResourceStatus: CREATE_IN_PROGRESS
  190. 2021-06-15T13:43:00.624+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Lambda::Function, LogicalResourceId: fnbcloudwatch, ResourceStatus: CREATE_IN_PROGRESS, ResourceStatusReason: Resource creation Initiated
  191. 2021-06-15T13:43:02.818+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Lambda::Function, LogicalResourceId: fnbcloudwatch, ResourceStatus: CREATE_COMPLETE
  192. 2021-06-15T13:43:07.091+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Logs::SubscriptionFilter, LogicalResourceId: fnbcloudwatchSFawslambdaec2cleanup, ResourceStatus: CREATE_IN_PROGRESS
  193. 2021-06-15T13:43:07.091+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Lambda::Permission, LogicalResourceId: fnbcloudwatchPermission0, ResourceStatus: CREATE_IN_PROGRESS
  194. 2021-06-15T13:43:07.091+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Lambda::Permission, LogicalResourceId: fnbcloudwatchPermission0, ResourceStatus: CREATE_IN_PROGRESS, ResourceStatusReason: Resource creation Initiated
  195. 2021-06-15T13:43:07.091+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Logs::SubscriptionFilter, LogicalResourceId: fnbcloudwatchSFawslambdaec2cleanup, ResourceStatus: CREATE_FAILED, ResourceStatusReason: The specified log group does not exist. (Service: AWSLogs; Status Code: 400; Error Code: ResourceNotFoundException; Request ID: c5ebb8b5-a00b-4628-9d6e-d9c3327dc900; Proxy: null)
  196. 2021-06-15T13:43:07.091+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Lambda::Permission, LogicalResourceId: fnbcloudwatchPermission0, ResourceStatus: CREATE_FAILED, ResourceStatusReason: Resource creation cancelled
  197. 2021-06-15T13:43:07.091+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::CloudFormation::Stack, LogicalResourceId: fnb-cloudwatch-stack, ResourceStatus: ROLLBACK_IN_PROGRESS, ResourceStatusReason: The following resource(s) failed to create: [fnbcloudwatchPermission0, fnbcloudwatchSFawslambdaec2cleanup]. Rollback requested by user.
  198. 2021-06-15T13:43:19.896+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Logs::SubscriptionFilter, LogicalResourceId: fnbcloudwatchSFawslambdaec2cleanup, ResourceStatus: DELETE_COMPLETE
  199. 2021-06-15T13:43:19.896+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Lambda::Permission, LogicalResourceId: fnbcloudwatchPermission0, ResourceStatus: DELETE_IN_PROGRESS
  200. 2021-06-15T13:43:19.896+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Logs::LogGroup, LogicalResourceId: fnbcloudwatchLogGroup, ResourceStatus: DELETE_IN_PROGRESS
  201. 2021-06-15T13:43:22.043+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Logs::LogGroup, LogicalResourceId: fnbcloudwatchLogGroup, ResourceStatus: DELETE_COMPLETE
  202. 2021-06-15T13:43:30.566+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Lambda::Permission, LogicalResourceId: fnbcloudwatchPermission0, ResourceStatus: DELETE_COMPLETE
  203. 2021-06-15T13:43:30.566+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Lambda::Function, LogicalResourceId: fnbcloudwatch, ResourceStatus: DELETE_IN_PROGRESS
  204. 2021-06-15T13:43:39.143+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::Lambda::Function, LogicalResourceId: fnbcloudwatch, ResourceStatus: DELETE_COMPLETE
  205. 2021-06-15T13:43:39.143+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::IAM::Role, LogicalResourceId: fnbcloudwatchIAMRoleLambdaExecution, ResourceStatus: DELETE_IN_PROGRESS
  206. 2021-06-15T13:43:43.415+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::IAM::Role, LogicalResourceId: fnbcloudwatchIAMRoleLambdaExecution, ResourceStatus: DELETE_COMPLETE
  207. 2021-06-15T13:43:43.415+0100 INFO [aws] aws/op_cloudformation.go:97 Stack event received, ResourceType: AWS::CloudFormation::Stack, LogicalResourceId: fnb-cloudwatch-stack, ResourceStatus: ROLLBACK_COMPLETE
  208. 2021-06-15T13:43:43.415+0100 DEBUG [aws.executor] executor/executor.go:76 The executor is rolling back previous execution, '2' operations to rollback
  209. 2021-06-15T13:43:43.415+0100 DEBUG [aws] aws/op_delete_file_bucket.go:38 Removing file 'functionbeat-deployment/cloudwatch/bHwosKG1s9moRQfLd4W30IUDlEy4znBqXv_wScQiGLQ/cloudformation-template-create.json' on bucket 'xxx-fnbeat'
  210. 2021-06-15T13:43:43.821+0100 DEBUG [aws] aws/op_delete_file_bucket.go:51 Remove successful
  211. 2021-06-15T13:43:43.821+0100 DEBUG [aws] aws/op_delete_file_bucket.go:38 Removing file 'functionbeat-deployment/cloudwatch/-G81FRht03c4RIJTFn723sDX9qiwo0IyA5OzeAZyifw/functionbeat.zip' on bucket 'xxx-fnbeat'
  212. 2021-06-15T13:43:43.923+0100 DEBUG [aws] aws/op_delete_file_bucket.go:51 Remove successful
  213. 2021-06-15T13:43:43.923+0100 DEBUG [aws.executor] executor/executor.go:89 The rollback is successful
  214. 2021-06-15T13:43:43.923+0100 DEBUG [aws] aws/cli_manager.go:129 Deploy finish for function 'cloudwatch'
  215. 2021-06-15T13:43:43.923+0100 DEBUG [cli-handler] cmd/cli_handler.go:62 Deploy execution ended
  216. Fail to deploy 1 function(s)
  217.  
RAW Paste Data