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

Deploy egress proxy with terraform instead of script #45

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

rahearn
Copy link
Collaborator

@rahearn rahearn commented Oct 10, 2024

No description provided.

Copy link

github-actions bot commented Oct 10, 2024

Terraform plan in terraform/staging

Plan: 6 to add, 0 to change, 0 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+   create

Terraform will perform the following actions:

  # module.egress_proxy.cloudfoundry_app.egress_app will be created
+   resource "cloudfoundry_app" "egress_app" {
+       buildpack                       = "binary_buildpack"
+       command                         = "./caddy run --config Caddyfile"
+       disk_quota                      = (known after apply)
+       enable_ssh                      = (known after apply)
+       environment                     = (sensitive value)
+       health_check_http_endpoint      = (known after apply)
+       health_check_invocation_timeout = (known after apply)
+       health_check_timeout            = (known after apply)
+       health_check_type               = "port"
+       id                              = (known after apply)
+       id_bg                           = (known after apply)
+       instances                       = 2
+       memory                          = 64
+       name                            = "tfm-egress-proxy-staging"
+       path                            = "/tmp/terraform-data-dir/modules/egress_proxy/egress_proxy/proxy.zip"
+       ports                           = (known after apply)
+       source_code_hash                = "f90ec730b6d8f3dce4c866d2030b8b1432e0d813583b0c8562e5535465a96d2a"
+       space                           = "ceca9558-8003-4b85-a596-db5da07fe35a"
+       stack                           = (known after apply)
+       stopped                         = false
+       strategy                        = "rolling"
+       timeout                         = 60

+       routes {
+           port  = (known after apply)
+           route = (known after apply)
        }
    }

  # module.egress_proxy.cloudfoundry_network_policy.client_routing["continuous_monitoring-staging"] will be created
+   resource "cloudfoundry_network_policy" "client_routing" {
+       id = (known after apply)

+       policy {
+           destination_app = (known after apply)
+           port            = "61443"
+           protocol        = "tcp"
+           source_app      = "9d0b006a-84b3-41f3-9d8d-4117b59bfe4b"
        }
    }

  # module.egress_proxy.cloudfoundry_route.egress_route will be created
+   resource "cloudfoundry_route" "egress_route" {
+       domain   = "26df58ef-0c0d-4997-b68b-8defb7b3998b"
+       endpoint = (known after apply)
+       hostname = "ts-devtools-prototyping-rahearn-egress-tfm-egress-proxy-staging"
+       id       = (known after apply)
+       port     = (known after apply)
+       space    = "ceca9558-8003-4b85-a596-db5da07fe35a"
    }

  # module.egress_proxy.cloudfoundry_user_provided_service.credentials will be created
+   resource "cloudfoundry_user_provided_service" "credentials" {
+       credentials = (sensitive value)
+       id          = (known after apply)
+       name        = "tfm-egress-proxy-staging-creds"
+       space       = "7137716e-43e5-4d59-8234-599ecaf58a6e"
    }

  # module.egress_proxy.random_password.password will be created
+   resource "random_password" "password" {
+       bcrypt_hash = (sensitive value)
+       id          = (known after apply)
+       length      = 16
+       lower       = true
+       min_lower   = 0
+       min_numeric = 0
+       min_special = 0
+       min_upper   = 0
+       number      = true
+       numeric     = true
+       result      = (sensitive value)
+       special     = false
+       upper       = true
    }

  # module.egress_proxy.random_uuid.username will be created
+   resource "random_uuid" "username" {
+       id     = (known after apply)
+       result = (known after apply)
    }

Plan: 6 to add, 0 to change, 0 to destroy.

✅ Plan applied in Deploy Staging #39

@rahearn rahearn merged commit c650869 into main Oct 10, 2024
11 checks passed
@rahearn rahearn deleted the terraform-egress-proxy branch October 10, 2024 15:33
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 this pull request may close these issues.

1 participant