-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add AWS RDS configuration with PostgreSQL instance, security group #17
Conversation
.github/workflows/terraform.yml
Outdated
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use OIDC here by adding this step:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-role-shared
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @leej3, where we store AWS_ACCOUNT_ID
and AWS_REGION
value?
.github/workflows/terraform.yml
Outdated
|
||
on: | ||
push: | ||
branches: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change this to use manual dispatch. We may only deploy it once but we'll see how things go. No doubt we'll be running it a few times on this PR to make sure things are working well.
.github/workflows/terraform.yml
Outdated
working-directory: ./terraform/state | ||
|
||
- name: Terraform Apply | ||
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/terraform-sharing-db' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this, so that manual dispatch will work.
{ | ||
"Effect": "Allow", | ||
"Action": [ | ||
"rds:CreateDBInstance", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we may have to modify the permissions here. Let me know if that is required.
910aa15
to
14a375e
Compare
14a375e
to
654db63
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Abandoning deployment using GitHub Actions for now. This is available on branch add-github-workflow-for-postgres-deployment
No description provided.