fastly.getTlsConfiguration
Use this data source to get the ID of a TLS configuration for use with other resources.
Warning: The data source’s filters are applied using an AND boolean operator, so depending on the combination of filters, they may become mutually exclusive. The exception to this is
idwhich must not be specified in combination with any of the others.
Note: If more or less than a single match is returned by the search, this provider will fail. Ensure that your search is specific enough to return a single key.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fastly from "@pulumi/fastly";
const example = fastly.getTlsConfiguration({
    "default": true,
});
const exampleTlsActivation = new fastly.TlsActivation("example", {configurationId: example.then(example => example.id)});
import pulumi
import pulumi_fastly as fastly
example = fastly.get_tls_configuration(default=True)
example_tls_activation = fastly.TlsActivation("example", configuration_id=example.id)
package main
import (
	"github.com/pulumi/pulumi-fastly/sdk/v11/go/fastly"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := fastly.GetTlsConfiguration(ctx, &fastly.GetTlsConfigurationArgs{
			Default: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		_, err = fastly.NewTlsActivation(ctx, "example", &fastly.TlsActivationArgs{
			ConfigurationId: pulumi.String(example.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fastly = Pulumi.Fastly;
return await Deployment.RunAsync(() => 
{
    var example = Fastly.GetTlsConfiguration.Invoke(new()
    {
        Default = true,
    });
    var exampleTlsActivation = new Fastly.TlsActivation("example", new()
    {
        ConfigurationId = example.Apply(getTlsConfigurationResult => getTlsConfigurationResult.Id),
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fastly.FastlyFunctions;
import com.pulumi.fastly.inputs.GetTlsConfigurationArgs;
import com.pulumi.fastly.TlsActivation;
import com.pulumi.fastly.TlsActivationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = FastlyFunctions.getTlsConfiguration(GetTlsConfigurationArgs.builder()
            .default_(true)
            .build());
        var exampleTlsActivation = new TlsActivation("exampleTlsActivation", TlsActivationArgs.builder()
            .configurationId(example.id())
            .build());
    }
}
resources:
  exampleTlsActivation:
    type: fastly:TlsActivation
    name: example
    properties:
      configurationId: ${example.id}
variables:
  example:
    fn::invoke:
      function: fastly:getTlsConfiguration
      arguments:
        default: true
Using getTlsConfiguration
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTlsConfiguration(args: GetTlsConfigurationArgs, opts?: InvokeOptions): Promise<GetTlsConfigurationResult>
function getTlsConfigurationOutput(args: GetTlsConfigurationOutputArgs, opts?: InvokeOptions): Output<GetTlsConfigurationResult>def get_tls_configuration(default: Optional[bool] = None,
                          http_protocols: Optional[Sequence[str]] = None,
                          id: Optional[str] = None,
                          name: Optional[str] = None,
                          tls_protocols: Optional[Sequence[str]] = None,
                          tls_service: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetTlsConfigurationResult
def get_tls_configuration_output(default: Optional[pulumi.Input[bool]] = None,
                          http_protocols: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          tls_protocols: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                          tls_service: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetTlsConfigurationResult]func GetTlsConfiguration(ctx *Context, args *GetTlsConfigurationArgs, opts ...InvokeOption) (*GetTlsConfigurationResult, error)
func GetTlsConfigurationOutput(ctx *Context, args *GetTlsConfigurationOutputArgs, opts ...InvokeOption) GetTlsConfigurationResultOutput> Note: This function is named GetTlsConfiguration in the Go SDK.
public static class GetTlsConfiguration 
{
    public static Task<GetTlsConfigurationResult> InvokeAsync(GetTlsConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetTlsConfigurationResult> Invoke(GetTlsConfigurationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTlsConfigurationResult> getTlsConfiguration(GetTlsConfigurationArgs args, InvokeOptions options)
public static Output<GetTlsConfigurationResult> getTlsConfiguration(GetTlsConfigurationArgs args, InvokeOptions options)
fn::invoke:
  function: fastly:index/getTlsConfiguration:getTlsConfiguration
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Default bool
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- HttpProtocols List<string>
- HTTP protocols available on the TLS configuration.
- Id string
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- Name string
- Custom name of the TLS configuration.
- TlsProtocols List<string>
- TLS protocols available on the TLS configuration.
- TlsService string
- Whether the configuration should support the PLATFORMorCUSTOMTLS service.
- Default bool
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- HttpProtocols []string
- HTTP protocols available on the TLS configuration.
- Id string
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- Name string
- Custom name of the TLS configuration.
- TlsProtocols []string
- TLS protocols available on the TLS configuration.
- TlsService string
- Whether the configuration should support the PLATFORMorCUSTOMTLS service.
- default_ Boolean
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- httpProtocols List<String>
- HTTP protocols available on the TLS configuration.
- id String
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- name String
- Custom name of the TLS configuration.
- tlsProtocols List<String>
- TLS protocols available on the TLS configuration.
- tlsService String
- Whether the configuration should support the PLATFORMorCUSTOMTLS service.
- default boolean
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- httpProtocols string[]
- HTTP protocols available on the TLS configuration.
- id string
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- name string
- Custom name of the TLS configuration.
- tlsProtocols string[]
- TLS protocols available on the TLS configuration.
- tlsService string
- Whether the configuration should support the PLATFORMorCUSTOMTLS service.
- default bool
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- http_protocols Sequence[str]
- HTTP protocols available on the TLS configuration.
- id str
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- name str
- Custom name of the TLS configuration.
- tls_protocols Sequence[str]
- TLS protocols available on the TLS configuration.
- tls_service str
- Whether the configuration should support the PLATFORMorCUSTOMTLS service.
- default Boolean
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- httpProtocols List<String>
- HTTP protocols available on the TLS configuration.
- id String
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- name String
- Custom name of the TLS configuration.
- tlsProtocols List<String>
- TLS protocols available on the TLS configuration.
- tlsService String
- Whether the configuration should support the PLATFORMorCUSTOMTLS service.
getTlsConfiguration Result
The following output properties are available:
- CreatedAt string
- Timestamp (GMT) when the configuration was created.
- Default bool
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- DnsRecords List<GetTls Configuration Dns Record> 
- The available DNS addresses that can be used to enable TLS for a domain. DNS must be configured for a domain for TLS handshakes to succeed. If enabling TLS on an apex domain (e.g. example.com) you must create four A records (or four AAAA records for IPv6 support) using the displayed global A record's IP addresses with your DNS provider. For subdomains and wildcard domains (e.g.www.example.comor*.example.com) you will need to create a relevant CNAME record.
- HttpProtocols List<string>
- HTTP protocols available on the TLS configuration.
- Id string
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- Name string
- Custom name of the TLS configuration.
- TlsProtocols List<string>
- TLS protocols available on the TLS configuration.
- TlsService string
- Whether the configuration should support the PLATFORMorCUSTOMTLS service.
- UpdatedAt string
- Timestamp (GMT) when the configuration was last updated.
- CreatedAt string
- Timestamp (GMT) when the configuration was created.
- Default bool
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- DnsRecords []GetTls Configuration Dns Record 
- The available DNS addresses that can be used to enable TLS for a domain. DNS must be configured for a domain for TLS handshakes to succeed. If enabling TLS on an apex domain (e.g. example.com) you must create four A records (or four AAAA records for IPv6 support) using the displayed global A record's IP addresses with your DNS provider. For subdomains and wildcard domains (e.g.www.example.comor*.example.com) you will need to create a relevant CNAME record.
- HttpProtocols []string
- HTTP protocols available on the TLS configuration.
- Id string
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- Name string
- Custom name of the TLS configuration.
- TlsProtocols []string
- TLS protocols available on the TLS configuration.
- TlsService string
- Whether the configuration should support the PLATFORMorCUSTOMTLS service.
- UpdatedAt string
- Timestamp (GMT) when the configuration was last updated.
- createdAt String
- Timestamp (GMT) when the configuration was created.
- default_ Boolean
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- dnsRecords List<GetTls Configuration Dns Record> 
- The available DNS addresses that can be used to enable TLS for a domain. DNS must be configured for a domain for TLS handshakes to succeed. If enabling TLS on an apex domain (e.g. example.com) you must create four A records (or four AAAA records for IPv6 support) using the displayed global A record's IP addresses with your DNS provider. For subdomains and wildcard domains (e.g.www.example.comor*.example.com) you will need to create a relevant CNAME record.
- httpProtocols List<String>
- HTTP protocols available on the TLS configuration.
- id String
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- name String
- Custom name of the TLS configuration.
- tlsProtocols List<String>
- TLS protocols available on the TLS configuration.
- tlsService String
- Whether the configuration should support the PLATFORMorCUSTOMTLS service.
- updatedAt String
- Timestamp (GMT) when the configuration was last updated.
- createdAt string
- Timestamp (GMT) when the configuration was created.
- default boolean
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- dnsRecords GetTls Configuration Dns Record[] 
- The available DNS addresses that can be used to enable TLS for a domain. DNS must be configured for a domain for TLS handshakes to succeed. If enabling TLS on an apex domain (e.g. example.com) you must create four A records (or four AAAA records for IPv6 support) using the displayed global A record's IP addresses with your DNS provider. For subdomains and wildcard domains (e.g.www.example.comor*.example.com) you will need to create a relevant CNAME record.
- httpProtocols string[]
- HTTP protocols available on the TLS configuration.
- id string
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- name string
- Custom name of the TLS configuration.
- tlsProtocols string[]
- TLS protocols available on the TLS configuration.
- tlsService string
- Whether the configuration should support the PLATFORMorCUSTOMTLS service.
- updatedAt string
- Timestamp (GMT) when the configuration was last updated.
- created_at str
- Timestamp (GMT) when the configuration was created.
- default bool
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- dns_records Sequence[GetTls Configuration Dns Record] 
- The available DNS addresses that can be used to enable TLS for a domain. DNS must be configured for a domain for TLS handshakes to succeed. If enabling TLS on an apex domain (e.g. example.com) you must create four A records (or four AAAA records for IPv6 support) using the displayed global A record's IP addresses with your DNS provider. For subdomains and wildcard domains (e.g.www.example.comor*.example.com) you will need to create a relevant CNAME record.
- http_protocols Sequence[str]
- HTTP protocols available on the TLS configuration.
- id str
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- name str
- Custom name of the TLS configuration.
- tls_protocols Sequence[str]
- TLS protocols available on the TLS configuration.
- tls_service str
- Whether the configuration should support the PLATFORMorCUSTOMTLS service.
- updated_at str
- Timestamp (GMT) when the configuration was last updated.
- createdAt String
- Timestamp (GMT) when the configuration was created.
- default Boolean
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- dnsRecords List<Property Map>
- The available DNS addresses that can be used to enable TLS for a domain. DNS must be configured for a domain for TLS handshakes to succeed. If enabling TLS on an apex domain (e.g. example.com) you must create four A records (or four AAAA records for IPv6 support) using the displayed global A record's IP addresses with your DNS provider. For subdomains and wildcard domains (e.g.www.example.comor*.example.com) you will need to create a relevant CNAME record.
- httpProtocols List<String>
- HTTP protocols available on the TLS configuration.
- id String
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- name String
- Custom name of the TLS configuration.
- tlsProtocols List<String>
- TLS protocols available on the TLS configuration.
- tlsService String
- Whether the configuration should support the PLATFORMorCUSTOMTLS service.
- updatedAt String
- Timestamp (GMT) when the configuration was last updated.
Supporting Types
GetTlsConfigurationDnsRecord    
- RecordType string
- Type of DNS record to set, e.g. A, AAAA, or CNAME.
- RecordValue string
- The IP address or hostname of the DNS record.
- Region string
- The regions that will be used to route traffic. Select DNS Records with a globalregion to route traffic to the most performant point of presence (POP) worldwide (global pricing will apply). Select DNS records with aus-euregion to exclusively land traffic on North American and European POPs.
- RecordType string
- Type of DNS record to set, e.g. A, AAAA, or CNAME.
- RecordValue string
- The IP address or hostname of the DNS record.
- Region string
- The regions that will be used to route traffic. Select DNS Records with a globalregion to route traffic to the most performant point of presence (POP) worldwide (global pricing will apply). Select DNS records with aus-euregion to exclusively land traffic on North American and European POPs.
- recordType String
- Type of DNS record to set, e.g. A, AAAA, or CNAME.
- recordValue String
- The IP address or hostname of the DNS record.
- region String
- The regions that will be used to route traffic. Select DNS Records with a globalregion to route traffic to the most performant point of presence (POP) worldwide (global pricing will apply). Select DNS records with aus-euregion to exclusively land traffic on North American and European POPs.
- recordType string
- Type of DNS record to set, e.g. A, AAAA, or CNAME.
- recordValue string
- The IP address or hostname of the DNS record.
- region string
- The regions that will be used to route traffic. Select DNS Records with a globalregion to route traffic to the most performant point of presence (POP) worldwide (global pricing will apply). Select DNS records with aus-euregion to exclusively land traffic on North American and European POPs.
- record_type str
- Type of DNS record to set, e.g. A, AAAA, or CNAME.
- record_value str
- The IP address or hostname of the DNS record.
- region str
- The regions that will be used to route traffic. Select DNS Records with a globalregion to route traffic to the most performant point of presence (POP) worldwide (global pricing will apply). Select DNS records with aus-euregion to exclusively land traffic on North American and European POPs.
- recordType String
- Type of DNS record to set, e.g. A, AAAA, or CNAME.
- recordValue String
- The IP address or hostname of the DNS record.
- region String
- The regions that will be used to route traffic. Select DNS Records with a globalregion to route traffic to the most performant point of presence (POP) worldwide (global pricing will apply). Select DNS records with aus-euregion to exclusively land traffic on North American and European POPs.
Package Details
- Repository
- Fastly pulumi/pulumi-fastly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the fastlyTerraform Provider.
