lacework / terraform-provider-lacework

Terraform Lacework provider
Mozilla Public License 2.0
17 stars 14 forks source link

Lacework Agents access token resource and data source #41

Closed JPLachance closed 3 years ago

JPLachance commented 3 years ago

Greetings,

Today, to manage Lacework agents access tokens, we must use the Lacework UI or the API.

With a Terraform resource, automating the creation and management of Lacework agents access tokens will be easier. For example, it will make it easy to create the access token and then store it in AWS Secrets Manager.

Thanks in advance for the help!

afiune commented 3 years ago

@JPLachance Would this resource and this data source work for you?

Resource

resource "lacework_agent_access_token" "k8s" {
  name        = "prod"
  description = "k8s deployment for production env"
}

Data Source

data "lacework_agent_access_token" "k8s" {
  name  = "prod"
}

Both expose a token attribute. Suggestions are accepted.

JPLachance commented 3 years ago

Hello!

This will work. It will allow me to create token, store it in AWS Secrets Manager, automate its rotation.

Thank you 😄