fastly_service_v1

    0

    0

    lucycodes42

    Terraform snippets

    This service will use the Fastly CDN and will be hosted on localhost on port 8080. The service will have the name my-${myResourceName}, and will have the description my-description-${myResourceName}. The domain for this service will be demo.notexample.com. The backend for this service will be hosted on 127.0.0.1 and will use the address and port of localhost. The service will be enabled for force_destroy to be true.

    Shortcut: tf_fastly_service_v1

    resource "fastly_service_v1" "${myResourceName}" {
       name = "my-${myResourceName}"
       description = "my-description-${myResourceName}"
    
       domain {
           name    = "demo.notexample.com"
           comment = "demo"
       }
    
       backend {
           address = "127.0.0.1"
           name    = "localhost"
           port    = 80
       }
    
       force_destroy = true
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.