The Lastpass provider is used to read, manage, or destroy secrets inside Lastpass. Goodbye secret .tfvars files 👋
terraform {
required_providers {
lastpass = {
source = "nrkno/lastpass"
}
}
}
resource "lastpass_secret" "mysecret" {
name = "My site"
username = "foobar"
password = file("${path.module}/secret")
url = "https://example.com"
note = <<EOF
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam sed elit nec orci
cursus rhoncus. Morbi lacus turpis, volutpat in lobortis vel, mattis nec magna.
Cras gravida libero vitae nisl iaculis ultrices. Fusce odio ligula, pharetra ac
viverra semper, consequat quis risus.
EOF
}
Documentation and examples can be found inside the Terraform registry: