Skip to content

Commit

Permalink
Update deploy-d2ec2.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoDiazL authored Mar 4, 2024
1 parent a798099 commit 0a36427
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/deploy-d2ec2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ permissions:
contents: read

env:
STACK_DESTROY: true
STACK_DESTROY: false
AWS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_SANDBOX }}
AWS_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_SANDBOX }}
AWS_REGION: us-east-1
Expand All @@ -16,31 +16,31 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- id: efs
uses: bitovi/github-actions-deploy-efs-volume@main
with:
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 }}${{ env.ENVIRONMENT }}
aws_efs_create_mount_target: true
aws_efs_create_ha: true
#- id: efs
# uses: bitovi/github-actions-deploy-efs-volume@main
# with:
# 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 }}${{ env.ENVIRONMENT }}
# aws_efs_create_mount_target: true
# aws_efs_create_ha: true
# aws_vpc_availability_zones: ${{ env.AWS_AZ }}
tf_stack_destroy: ${{ env.STACK_DESTROY }}
# tf_stack_destroy: ${{ env.STACK_DESTROY }}

- id: rds
uses: bitovi/github-actions-deploy-rds@commons-bump
with:
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 }}${{ env.ENVIRONMENT }}
#- id: rds
# uses: bitovi/github-actions-deploy-rds@commons-bump
# with:
# 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 }}${{ env.ENVIRONMENT }}
# aws_vpc_availability_zones: ${{ env.AWS_AZ }}
aws_vpc_id: ${{ steps.efs.outputs.aws_vpc_id }}
tf_stack_destroy: ${{ env.STACK_DESTROY }}
# aws_vpc_id: ${{ steps.efs.outputs.aws_vpc_id }}
# tf_stack_destroy: ${{ env.STACK_DESTROY }}

- id: ec2
uses: bitovi/github-actions-deploy-docker-to-ec2@commons-testing
uses: bitovi/github-actions-deploy-docker-to-ec2@v1.0.1
with:
aws_access_key_id: ${{ env.AWS_KEY_ID }}
aws_secret_access_key: ${{ env.AWS_ACCESS_KEY }}
Expand All @@ -50,11 +50,11 @@ jobs:
# aws_elb_create: false
tf_state_bucket_destroy: true
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_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: ${{ env.AWS_AZ }}
aws_vpc_id: ${{ steps.efs.outputs.aws_vpc_id }}
# aws_vpc_id: ${{ steps.efs.outputs.aws_vpc_id }}
tf_stack_destroy: ${{ env.STACK_DESTROY }}
tf_state_bucket: tf-state-leo
ansible_skip: true
Expand Down

0 comments on commit 0a36427

Please sign in to comment.