Skip to content

Commit

Permalink
Testing env
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoDiazL authored Dec 11, 2023
1 parent 15dae04 commit 495cd8d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy-d2ec2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
AWS_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_SANDBOX }}
AWS_REGION: us-east-1
AWS_AZ: us-east-1a

ENVIRONMENT: test
jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -28,7 +28,7 @@ jobs:
aws_access_key_id: ${{ env.AWS_KEY_ID }}
aws_secret_access_key: ${{ env.AWS_ACCESS_KEY }}
aws_default_region: ${{ env.AWS_REGION }}
tf_state_file_name_append: ${{ github.action }}
tf_state_file_name_append: ${{ github.action }}${{ env.ENVIRONMENT }}
aws_efs_create_mount_target: true
aws_efs_create_ha: false
aws_vpc_availability_zones: $AWS_AZ
Expand All @@ -40,7 +40,7 @@ jobs:
aws_access_key_id: ${{ env.AWS_KEY_ID }}
aws_secret_access_key: ${{ env.AWS_ACCESS_KEY }}
aws_default_region: ${{ env.AWS_REGION }}
tf_state_file_name_append: ${{ github.action }}
tf_state_file_name_append: ${{ github.action }}${{ env.ENVIRONMENT }}
aws_vpc_availability_zones: $AWS_AZ
tf_stack_destroy: ${{ env.STACK_DESTROY }}

Expand All @@ -53,9 +53,11 @@ jobs:
aws_elb_app_port: 3000
aws_ec2_instance_type: t3.small
tf_state_bucket_destroy: true
tf_state_file_name_append: ${{ github.action }}
tf_state_file_name_append: ${{ github.action }}${{ env.ENVIRONMENT }}
aws_efs_fs_id: ${{ steps.efs.outputs.aws_efs_fs_id }}
aws_efs_create_mount_target: false
env_aws_secret: ${{ steps.rds.outputs.db_secret_details_name }}
aws_vpc_availability_zones: $AWS_AZ
tf_stack_destroy: ${{ env.STACK_DESTROY }}
# We can use this to set the location of the files based on the path
# docker_repo_app_directory: ${{ env.ENVIRONMENT }}

0 comments on commit 495cd8d

Please sign in to comment.