-
Notifications
You must be signed in to change notification settings - Fork 1
Feat/sbox rds #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rss04
wants to merge
52
commits into
main
Choose a base branch
from
feat/sbox-rds
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feat/sbox rds #25
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
7225ed6
added deploy-sbx.yaml workflow
47b9a5c
added tf_state_bucket in deploy-sbx.yaml workflow
6665087
added tf_state_bucket in deploy-sbx.yaml workflow
afea8cb
added tf_state_bucket in deploy-sbx.yaml workflow
8641bcb
added tf_state_bucket in deploy-sbx.yaml workflow
8e800da
updated deploy-sbx.yaml workflow
61286f0
tear down the stack
mickmcgrath13 b63039a
use new enable_postgres flag
mickmcgrath13 184de98
specify subnets for postgres
mickmcgrath13 7da17a2
use database
mickmcgrath13 59e3066
try async function
mickmcgrath13 cf3a52e
debugging app startup
mickmcgrath13 fde57b4
remove postgres specific vars
mickmcgrath13 70da7b0
enable postgres code
mickmcgrath13 e175bc5
adjust output
mickmcgrath13 8054ab7
dedicated url for postgres
mickmcgrath13 670f6dc
include connection to pg client
mickmcgrath13 2b41d12
destroy the stack
mickmcgrath13 c6a27b6
recreate
mickmcgrath13 4edaa54
configure client in JS
mickmcgrath13 6201050
use dot notation for app
mickmcgrath13 a7d3643
add debugging for pg info and specify db for pg client
mickmcgrath13 272cc0e
force ssl
mickmcgrath13 7166491
use constring connection approach
mickmcgrath13 212b22b
fix syntax error
mickmcgrath13 a1a421f
fix pgdatabase reference in constring
mickmcgrath13 0035946
switch back to ssl
mickmcgrath13 a8e865e
move client connection to postgres endpoint and specify sql response
mickmcgrath13 c666e68
do not specify subnets
mickmcgrath13 b537b5c
specify subnets
mickmcgrath13 0ee84d8
do not specify subnets
mickmcgrath13 06a0b79
Destroy stack
LeoDiazL a78c6f2
Recreating stack - postgres disabled
LeoDiazL 9b4d1d6
Enable postgres
LeoDiazL 0ad34ec
Testing db_port change
LeoDiazL 57fb856
Moved port back to default
LeoDiazL fbb8d8a
Changing port
LeoDiazL 82cda25
Destroying
LeoDiazL a164424
recreating
LeoDiazL 10a6486
re-destroying
LeoDiazL 06bf325
testing
LeoDiazL 9818e2a
Destroy
LeoDiazL 5e76523
Update deploy-sbx.yaml
LeoDiazL 5682395
Update deploy-sbx.yaml
LeoDiazL 75c6649
Update deploy-sbx.yaml
LeoDiazL 4763bdf
Update deploy-sbx.yaml
LeoDiazL 3211585
Update deploy-sbx.yaml
LeoDiazL c69a98a
Update deploy-sbx.yaml
LeoDiazL 9c707ed
Update deploy-sbx.yaml
LeoDiazL 16169ff
Update deploy-sbx.yaml
LeoDiazL eb03115
Update deploy-sbx.yaml
LeoDiazL 3ac44f2
Update deploy-sbx.yaml
LeoDiazL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Deploy-SBX | ||
|
||
on: | ||
push: | ||
branches: [ feat/sbox-rds ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
EC2-Deploy: | ||
# if the branch name of the PR does not contain 'skip-deploy' | ||
if: "!contains(github.head_ref, 'skip-deploy')" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- id: deploy | ||
name: Deploy | ||
uses: bitovi/github-actions-deploy-docker-to-ec2@main | ||
with: | ||
### | ||
### App config | ||
### | ||
|
||
### | ||
### AWS config | ||
### | ||
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 | ||
|
||
### | ||
### Deployment config | ||
### | ||
# Provide a secret called `DOT_ENV` to append environment variables to the .env file | ||
# dot_env: ${{ secrets.DOT_ENV }} | ||
tf_stack_destroy: true | ||
tf_state_bucket_destroy: true | ||
tf_state_bucket: bitovi-devops-training-ec2-gha-example-feat-sbox-rds-tf-state | ||
tf_state_file_name: tf-state | ||
|
||
#aws_mount_efs_id: fs-089a6338a687599fc | ||
### | ||
### Postgres config | ||
### | ||
# postgres_subnets: "subnet-0f1b65df74adf6e87,subnet-05d768eabcd7591ea,subnet-082c8c6a0f81405d3" | ||
#enable_postgres: true | ||
|
||
# TODO: | ||
# postgres_vpc_id = "vpc-081abe910edab4281" | ||
# postgres_vpc_cidr = "172.31.0.0/16" | ||
#postgres_database_port: 5444 | ||
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
"start": "node index.js" | ||
}, | ||
"dependencies": { | ||
"express": "^4.13.4" | ||
"express": "^4.13.4", | ||
"pg": "^8.9.0" | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.