Skip to content
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

[Issue #1546] Deploy Analytics folder to AWS ECR #1566

Merged
merged 29 commits into from
Mar 28, 2024
Merged

Conversation

coilysiren
Copy link
Collaborator

@coilysiren coilysiren commented Mar 27, 2024

Summary

Fixes #1546

Time to review: 5 mins

Changes proposed

  1. Adds an AWS ECR repository into infra/analytics
  2. Adds a cd-analytics script that I used to confirm that the ECR repository push was working

Context for reviewers

The PR was like 95% copy pasting

Testing

image

https://us-east-1.console.aws.amazon.com/ecr/repositories/private/315341936575/simpler-grants-gov-analytics?region=us-east-1

@coilysiren coilysiren changed the title Analytics ecr Analytics ECR Mar 27, 2024
Base automatically changed from analytics-docker to main March 27, 2024 19:29
@github-actions github-actions bot removed the frontend label Mar 27, 2024
@github-actions github-actions bot added the ci/cd label Mar 27, 2024
@@ -0,0 +1,59 @@
data "aws_iam_role" "github_actions" {
Copy link
Collaborator Author

@coilysiren coilysiren Mar 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copied from infra/api/build-repository/main.tf, verbatim with no changes.

@@ -0,0 +1,38 @@
name: Deploy Analytics
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copied from .github/workflows/cd-api.yml

@coilysiren coilysiren changed the title Analytics ECR [Issue #1546] Deploy Analytics folder to AWS ECR Mar 27, 2024
@coilysiren coilysiren marked this pull request as ready for review March 28, 2024 00:04
analytics-checks:
name: Run Analyics Checks
uses: ./.github/workflows/ci-analytics.yml
secrets: inherit
Copy link
Collaborator Author

@coilysiren coilysiren Mar 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests were broken before I added this line

    secrets: inherit

Comment on lines +21 to +27
# This variable is slightly misnamed. It should really be called "has_migrations".
# It controls whether or not the `run-database-migrations.sh` script tries to run database
# migrations. The entire analytics application is going to have its schema controlled
# via ETL jobs, so we don't need to run migrations in the same way as the API.
output "has_database" {
value = false
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't intend on updating the variable name. It seems fine to just document the issue here.

Copy link
Contributor

@aplybeah aplybeah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@coilysiren coilysiren merged commit db8513e into main Mar 28, 2024
7 checks passed
@coilysiren coilysiren deleted the analytics-ecr branch March 28, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Delivery Dashboard - Deploy application to AWS ECR
2 participants