Skip to content

Commit

Permalink
[Python] Use ec2-requirements.txt for EC2 test cases (follow up to #108
Browse files Browse the repository at this point in the history
…) (#110)
  • Loading branch information
majanjua-amzn committed Jul 8, 2024
1 parent addf4e8 commit 066ee3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions terraform/python/ec2/asg/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ resource "aws_launch_configuration" "launch_configuration" {
cd ./django_frontend_service
# Delete the requests requirement as it is installed already using rpm. Only applicable for ec2 instances
# created by Auto Scaling Groups
sudo sed -i '/requests/d' ./requirements.txt
python3.9 -m pip install -r requirements.txt
sudo sed -i '/requests/d' ./ec2-requirements.txt
python3.9 -m pip install -r ec2-requirements.txt
export DJANGO_SETTINGS_MODULE="django_frontend_service.settings"
export OTEL_PYTHON_DISTRO="aws_distro"
export OTEL_PYTHON_CONFIGURATOR="aws_configurator"
Expand Down
2 changes: 1 addition & 1 deletion terraform/python/ec2/default/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ resource "null_resource" "main_service_setup" {

# Export environment variables for instrumentation
"cd ./django_frontend_service",
"python3.9 -m pip install -r requirements.txt",
"python3.9 -m pip install -r ec2-requirements.txt",
"export DJANGO_SETTINGS_MODULE=\"django_frontend_service.settings\"",
"export OTEL_PYTHON_DISTRO=\"aws_distro\"",
"export OTEL_PYTHON_CONFIGURATOR=\"aws_configurator\"",
Expand Down

0 comments on commit 066ee3a

Please sign in to comment.