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

feat(product_enablement): implement product enablement APIs #641

Merged
merged 10 commits into from
Feb 21, 2023

Conversation

Integralist
Copy link
Collaborator

@Integralist Integralist commented Feb 20, 2023

✅ I've run the end-to-end test suite on this PR and it's passing.

NOTE:
Enabling ImageOptimizer requires a backend with a 'shield' property configured.
The below example configuration demonstrates which products are available to each service type.

resource "fastly_service_vcl" "demo" {
  name = "testing-prod-enablement"

  domain {
    name    = "testing-prod-enablement.integralist.co.uk"
    comment = "demo"
  }

  backend {
    address = "127.0.0.1"
    name    = "localhost"
    port    = 80
    shield  = "amsterdam-nl"
  }

  product_enablement {
    brotli_compression = true
    domain_inspector   = true
    image_optimizer    = true
    origin_inspector   = true
    websockets         = true
  }

  force_destroy = true
}

resource "fastly_service_compute" "demo" {
  name = "testing-prod-enablement-compute"

  domain {
    name    = "testing-prod-enablement-compute.integralist.co.uk"
    comment = "demo"
  }

  package {
    filename         = "package.tar.gz"
    source_code_hash = filesha512("package.tar.gz")
  }

  product_enablement {
    fanout     = true
    websockets = true
  }

  force_destroy = true
}

@Integralist Integralist added the enhancement New feature or request label Feb 20, 2023
@Integralist Integralist force-pushed the integralist/prod-enable branch from 2b99a68 to ce5de70 Compare February 20, 2023 16:24
@Integralist Integralist marked this pull request as ready for review February 20, 2023 21:35
@Integralist Integralist force-pushed the integralist/prod-enable branch from fdd96ba to bf424d3 Compare February 21, 2023 08:48
@Integralist Integralist merged commit 89f3d78 into main Feb 21, 2023
@Integralist Integralist deleted the integralist/prod-enable branch February 21, 2023 08:52
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

Successfully merging this pull request may close these issues.

1 participant