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

state/remote/s3: Allows KMS Key Encryption setting when using S3 backend with encrypt #2903

Merged
merged 3 commits into from
Jan 20, 2016

Conversation

kjmkznr
Copy link
Contributor

@kjmkznr kjmkznr commented Jul 31, 2015

This change allows encrypt with AWS KMS key.

Example

terraform remote config \
  -backend=s3
  -backend-config="bucket=bucket-tfstate"
  -backend-config="key=terraform.tfstate"
  -backend-config="region=ap-northeast-1"
  -backend-config="encrypt=1"
  -backend-config="kms_key_id=arn:aws:kms:ap-northeast-1:123456789:key/ac54dbd2-f301-42c1-bab9-88e6a84292a9"

* Example

```
terraform remote config \
  -backend=s3
  -backend-config="bucket=bucket-tfstate"
  -backend-config="key=terraform.tfstate"
  -backend-config="region=ap-northeast-1"
  -backend-config="encrypt=1"
  -backend-config="kmsKeyID=arn:aws:kms:ap-northeast-1:123456789:key/ac54dbd2-f301-42c1-bab9-88e6a84292a9"
```
@kjmkznr kjmkznr force-pushed the remote-s3-sse-kms branch from b86be99 to 576b2d1 Compare October 7, 2015 14:10
@josh-padnick
Copy link

Any update on this PR? We'd love to start using this.

@phinze
Copy link
Contributor

phinze commented Jan 20, 2016

LGTM! Will follow up with docs updates on master.

phinze added a commit that referenced this pull request Jan 20, 2016
state/remote/s3: Allows KMS Key Encryption setting when using S3 backend with encrypt
@phinze phinze merged commit ba21769 into hashicorp:master Jan 20, 2016
@kjmkznr kjmkznr deleted the remote-s3-sse-kms branch June 7, 2016 12:27
@ghost
Copy link

ghost commented Apr 25, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants