terraform-provider-bigip
terraform-provider-bigip copied to clipboard
In Our WAF architecture we need to configure the traffic certificates from the System menu
In Our WAF architecture we need to configure the traffic certificates from the System menu
We are automating the F5 WAF configuration using terraform. We need to assign device and traffic certificates to WA but we are using tmsh commands in bigip_command resource type to perform certificate related activities as there are no Terraform F5 resource types to perform certificate related activities. Please help to create BIGIP terraform resource type to perform below waf certificates related activities.
- Resources type to add certificate
- Resources type to add certificate key
- Resources type to add cert chain
- Resources type to add traffic-certs
@rakotkar0608 Are you referring to SSL certs for virtual Servers? If yes, have you tried the below resources
https://registry.terraform.io/providers/F5Networks/bigip/latest/docs/resources/bigip_ssl_certificate https://registry.terraform.io/providers/F5Networks/bigip/latest/docs/resources/bigip_ssl_key
@rakotkar0608 as suggested by @anesh did u try ?
we are checking it and let you know
We have these 2 providers that are working to configure traffic certificates and keys. We want provider to configure device certificates and keys (self sign certificates for WAF FQDN).
Closing this request now. Please re-open if required or send an email to [[email protected]](mailto:[email protected]). Thanks!
Hi @rakotkar0608,
Just to confirm "Resources type to add traffic-certs" is traffic certificate and key and not device? If yes, we already have the resources: https://registry.terraform.io/providers/F5Networks/bigip/latest/docs/resources/bigip_ssl_certificate
Hi @rakotkar0608,
In order to configure device certificates and keys , we can use DO resource: https://registry.terraform.io/providers/F5Networks/bigip/latest/docs/resources/bigip_do
For example below is the Declaration for updating Device Certificate:
{ "schemaVersion": "1.0.0", "class": "Device", "Common": { "class": "Tenant", "hostname": "bigip.example.com", "deviceCertificate": { "class": "DeviceCertificate", "certificate": { "base64": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkY1IEZBS0UgQ0VSVElGSUNBVEUKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQ==" }, "privateKey": { "base64": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpGNSBGQUtFIFBSSVZBVEUgS0VZCi0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0t" } } } }