Skip to content

Commit

Permalink
Deploy efs+rds+ec2
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoDiazL authored Dec 11, 2023
1 parent ccc463b commit 6ba3342
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/deploy-d2ec2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,35 @@ jobs:
# #
steps:

- id: ec2
uses: bitovi/github-actions-deploy-docker-to-ec2@efs-bump
- id: efs
uses: bitovi/github-actions-deploy-efs-volume@initial-branch
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID_SANDBOX }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY_SANDBOX }}
aws_default_region: us-east-1
aws_elb_app_port: 3000
aws_ec2_instance_type: t3.small
tf_state_bucket_destroy: true
tf_state_file_name_append: ${{ github.action }}
aws_efs_fs_id: ${{ steps.efs.outputs.aws_efs_fs_id }}
aws_efs_create_mount_target: true
env_aws_secret: ${{ steps.rds.outputs.db_secret_details_name }}
tf_stack_destroy: true
- id: efs
uses: bitovi/github-actions-deploy-efs-volume@initial-branch
aws_efs_create_ha: true
#tf_stack_destroy: true
- id: rds
uses: bitovi/github-actions-deploy-[email protected]
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID_SANDBOX }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY_SANDBOX }}
aws_default_region: us-east-1
tf_state_file_name_append: ${{ github.action }}
aws_efs_create_mount_target: false
tf_stack_destroy: true
- id: rds
uses: bitovi/[email protected]
#tf_stack_destroy: true
- id: ec2
uses: bitovi/github-actions-deploy-docker-to-ec2@efs-bump
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID_SANDBOX }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY_SANDBOX }}
aws_default_region: us-east-1
aws_elb_app_port: 3000
aws_ec2_instance_type: t3.small
tf_state_bucket_destroy: true
tf_state_file_name_append: ${{ github.action }}
tf_stack_destroy: true
aws_efs_fs_id: ${{ steps.efs.outputs.aws_efs_fs_id }}
#aws_efs_create_mount_target: true
env_aws_secret: ${{ steps.rds.outputs.db_secret_details_name }}
#tf_stack_destroy: true

0 comments on commit 6ba3342

Please sign in to comment.