Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cloud-monitor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Edouard DE BRYE
cloud-monitor
Commits
c3a2f0cd
Commit
c3a2f0cd
authored
4 years ago
by
Edouard DE BRYE
Browse files
Options
Downloads
Patches
Plain Diff
Added X-Ray on api gw and lambdas
parent
dad7742b
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+7
-0
7 additions, 0 deletions
README.md
deploy/api-gateway.tf
+5
-4
5 additions, 4 deletions
deploy/api-gateway.tf
deploy/docker-compose.yml
+1
-1
1 addition, 1 deletion
deploy/docker-compose.yml
deploy/lambda.tf
+4
-0
4 additions, 0 deletions
deploy/lambda.tf
with
17 additions
and
5 deletions
README.md
+
7
−
0
View file @
c3a2f0cd
# cloud-monitor
## Run some integration tests
```
bash
docker run
--rm
-itv
$PWD
:/etc/newman/ postman/newman run
--env-var
endpoint
={
api_gateway_endpoint
}
Lambda_CRUD.postman_collection.json
```
Useful for testing and/or generate logs.
This diff is collapsed.
Click to expand it.
deploy/api-gateway.tf
+
5
−
4
View file @
c3a2f0cd
...
...
@@ -82,10 +82,11 @@ resource "aws_api_gateway_deployment" "main" {
}
resource
"aws_api_gateway_stage"
"main"
{
deployment_id
=
aws_api_gateway_deployment
.
main
.
id
rest_api_id
=
aws_api_gateway_rest_api
.
main
.
id
stage_name
=
terraform
.
workspace
==
"production"
?
"api"
:
terraform
.
workspace
tags
=
local
.
common_tags
deployment_id
=
aws_api_gateway_deployment
.
main
.
id
rest_api_id
=
aws_api_gateway_rest_api
.
main
.
id
stage_name
=
terraform
.
workspace
==
"production"
?
"api"
:
terraform
.
workspace
xray_tracing_enabled
=
true
tags
=
local
.
common_tags
}
resource
"aws_api_gateway_method_settings"
"general_settings"
{
...
...
This diff is collapsed.
Click to expand it.
deploy/docker-compose.yml
+
1
−
1
View file @
c3a2f0cd
...
...
@@ -2,7 +2,7 @@ version: '3.7'
services
:
terraform
:
image
:
hashicorp/terraform:0.14.
7
image
:
hashicorp/terraform:0.14.
8
volumes
:
-
.:/infra
working_dir
:
/infra
...
...
This diff is collapsed.
Click to expand it.
deploy/lambda.tf
+
4
−
0
View file @
c3a2f0cd
...
...
@@ -16,6 +16,10 @@ resource "aws_lambda_function" "crud" {
"arn:aws:lambda:eu-west-1:580247275435:layer:LambdaInsightsExtension:14"
]
tracing_config
{
mode
=
"Active"
}
environment
{
variables
=
{
TABLE_NAME
=
aws_dynamodb_table
.
main
.
name
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment