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

add TLS to infrastructure #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Marcusk19
Copy link
Contributor

  • adds letsencrypt cert to quay_cert.tf
  • add ALB to ELB routing
  • adds unecessary infrastructure files to .gitignore
  • add builder config to deployments with clair enabled
  • bounce AWS provider

* adds letsencrypt cert to quay_cert.tf
* add ALB to ELB routing
* adds unecessary infrastructure files to .gitignore
* add builder config to deployments with clair enabled
* bounce AWS provider
@@ -98,4 +95,42 @@ resource "aws_alb_target_group" "quay_alb_metrics_target_group" {
}
}

/* TODO: Add IPs of ELB automatically to the target group */
# Use this to get the resource of the ELB using the tag created by k8s
data "aws_resourcegroupstaggingapi_resources" "quay_elb" {
Copy link
Collaborator

Choose a reason for hiding this comment

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

the service is not created until we apply the generated yaml file. So this is a circular dependency

Copy link
Collaborator

Choose a reason for hiding this comment

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

One solution to this would be to include the kubectl apply in the terraform logic. Having a null_resource dependency with local-exec should allow you to do that

https://developer.hashicorp.com/terraform/language/resources/provisioners/local-exec

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

Successfully merging this pull request may close these issues.

2 participants