Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to add ability to use KMS over AES? #29

Open
pbsladek opened this issue Jul 8, 2019 · 1 comment
Open

Possible to add ability to use KMS over AES? #29

pbsladek opened this issue Jul 8, 2019 · 1 comment

Comments

@pbsladek
Copy link

pbsladek commented Jul 8, 2019

Would like to be able to encrypt via KMS. Wondering if it is possible to add this ability.

https://www.terraform.io/docs/backends/types/s3.html#kms_key_id

@pbsladek pbsladek changed the title Possible to add ability to use KMS over AES Possible to add ability to use KMS over AES? Jul 8, 2019
@nitrocode
Copy link
Member

This can be done by overwriting the var terraform_backend_config_template_file with your own template file that includes the kms_key_id.

terraform {
  required_version = ">= ${terraform_version}"

  backend "s3" {
    region         = "${region}"
    bucket         = "${bucket}"
    key            = "${terraform_state_file}"
    dynamodb_table = "${dynamodb_table}"
    profile        = "${profile}"
    role_arn       = "${role_arn}"
    encrypt        = "${encrypt}"
    kms_key_id     = "arn:aws:..."
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants