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

CI/CD for AWS deployments #78

Closed
2 tasks done
pwalsh opened this issue Nov 20, 2019 · 16 comments · Fixed by #102
Closed
2 tasks done

CI/CD for AWS deployments #78

pwalsh opened this issue Nov 20, 2019 · 16 comments · Fixed by #102
Assignees

Comments

@pwalsh
Copy link
Contributor

pwalsh commented Nov 20, 2019

Related to #69 and #77

Description

Write a CI job that demonstrates the AWS deployment target for CCO.

  • [need credentials for a real sandbox account on AWS for these tests]
  • use terraform default configuration to set up environment required by CCO on AWS:
    • Create RDS instance
    • Create EKS cluster
    • Create IAM roles if necessary
  • ckan-cloud-operator cluster initialize should run cleanly
    • no extra step or configuration should be required out of terraform + cco cluster init
  • deploy a ckan instance with all required services
  • write tests that show CKAN is responding as expected for read and and writes
  • teardown the environment on AWS

Acceptance criteria

  • Deployment of a CKAN instance into the cluster is green
  • CCO and its AWS dependencies are deployed into the GSA sandbox via CircleCI
@adborden
Copy link
Collaborator

If this ticket is for GSA, we already have the credentials for CI and the base environment setup. Work should be done in https://github.com/gsa/datagov-infrastructure-live and https://github.com/gsa/datagov-infrastructure-modules unless there is reason not to.

@pwalsh
Copy link
Contributor Author

pwalsh commented Nov 27, 2019

@adborden ok.

@akariv cc

@adborden
Copy link
Collaborator

Why is the minikube story #77 a dependency?

@pwalsh
Copy link
Contributor Author

pwalsh commented Nov 27, 2019

@adborden by ensuring we are super clear in code and documentation about explicit and implicit dependencies on this cloud platform or that, we are paving a clear path for deterministic deployments on all cloud providers (two GSA related - AWS and GCP), and perhaps more importantly we are making it easier to develop and debug without having to standup sandbox environments on these cloud providers.

With the 4 different CI/CD tasks we have defined in here at #77 #78 #79 #80 we are also making it much easier for both the core developers and future contributors to isolate issues as being general (eg reproducible on the minikube environment) or target platform specific (AWS, GCP, Azure).

This work is not all 100% for GSA, we also have some team members working on this via other projects (so, some work is in parallel).

@adborden
Copy link
Collaborator

That is great, and I am all for accomplishing these, but in terms of priorities right now, the focus should be on GSA and making CCO work for GSA's infrastructure under GSA's processes. This story seems too big, with too many dependencies. Can we either a) re-scope this story to be more narrow and not include the other dependencies or b) create a new issue that we can prioritize next sprint that works toward GSA's goals?

@akariv akariv assigned aluminiumgeek and unassigned akariv and zelima Nov 28, 2019
@akariv
Copy link
Collaborator

akariv commented Nov 28, 2019

@aluminiumgeek, please take over this issue - I updated the task list in the description with some more details.

Make sure you build upon @zelima 's work in #77.

@kimwdavidson
Copy link
Collaborator

@estebanruseler and @akariv to rework this ticket to be more specific to GSA needs

@rufuspollock
Copy link
Member

Discussed with @adborden and did clarify that all of this is needed. Just want to be really clear that this is so we have a GSA-working CI script.

@akariv akariv mentioned this issue Dec 19, 2019
@adborden
Copy link
Collaborator

I added this AC:

  • CCO and its AWS dependencies are deployed into the GSA sandbox via CircleCI

@adborden
Copy link
Collaborator

I don't think the AC was met yet, are we deploying into the GSA cluster as part of CI/CD?

@adborden adborden reopened this Dec 30, 2019
@kimwdavidson
Copy link
Collaborator

@estebanruseler to determine status of this ticket

@pwalsh
Copy link
Contributor Author

pwalsh commented Jan 22, 2020

@akariv @zelima is this in a state for me to do acceptance testing yet (aside from data.gov specific requirements)?

@zelima
Copy link
Collaborator

zelima commented Jan 22, 2020

Not sure about Circle CI but it's green on travis

@pwalsh
Copy link
Contributor Author

pwalsh commented Jan 22, 2020

ok. so @akariv just waits for you to confirm on CCI for datagov

@kimwdavidson kimwdavidson assigned adborden and unassigned akariv Jan 23, 2020
@akariv
Copy link
Collaborator

akariv commented Jan 23, 2020

Yes, CI is travis-ci and it's deploying to AWS (Datopian Sandbox) on each run.

@adborden
Copy link
Collaborator

AC for CCO and its AWS dependencies are deployed into the GSA sandbox via CircleCI isn't met, but we're going to call this done and move on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants