Skip to content

BuyerQuest/terraform-provider-url

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform URL Provider

Simple little Terraform data source for parsing URLs.

Meant for those times when you're given a full URL and just want to pass on a piece of it.

Example

provider url {}

data "url" "main" {
  url = "postgres://user:pass@test.com:9543/hi?cool=lol"
}

output "path" {
  value = "${data.url.main.path}"
}

output "query" {
  value = "${data.url.main.query.cool}"
}

output "port" {
  value = "${data.url.main.port}"
}

output "host" {
  value = "${data.url.main.host}"
}

output "hostname" {
  value = "${data.url.main.hostname}"
}

output "scheme" {
  value = "${data.url.main.scheme}"
}

output "username" {
  value = "${data.url.main.username}"
}

output "password" {
  value = "${data.url.main.password}"
}

Installation

go get github.com/matthewmueller/terraform-provider-url
go install github.com/matthewmueller/terraform-provider-url

License

MIT

About

Simple little Terraform data source for parsing URLs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 92.4%
  • Makefile 7.6%