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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Blueprints, 02-at-scale]: Use Secrets to pass terraform variables to Casc #130

Closed
carlosrodlop opened this issue May 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@carlosrodlop
Copy link
Collaborator

carlosrodlop commented May 6, 2024

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

What is the outcome that you are trying to reach?

Reduce the complexity of adding terraform variables to Casc and use secrets to inject those values to Casc

https://github.com/cloudbees/terraform-aws-cloudbees-ci-eks-addon/tree/main/blueprints/02-at-scale#update-amazon-s3-bucket-settings

Describe the solution you would like

On the Terraform side

#124

resource "kubernetes_secret" "example" {
  metadata {
    name = "basic-auth"
  }

  data = {
    secS3bucketName = "${local.bucket_name}"
    secGrafanaUrlOT = "${local.grafanaURl}" 
  }

  type = "kubernetes.io/basic-auth"
}

On the Casc side

Replace variables by secrets ==> ${cbci_s3} by {sec_cbci_s3}

Describe alternatives you have considered

Additional context

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

No branches or pull requests

1 participant