Skip to content

Commit

Permalink
fix google_bigquery_table encryption_configuration modifications
Browse files Browse the repository at this point in the history
- changing to/from CMEK requires recreating the table (see [Change a table from default encryption to Cloud KMS protection](https://cloud.google.com/bigquery/docs/customer-managed-encryption#change_to_kms))
- the BQ API appears to support the default -> kms transition (no API error), but tables don't appear to get encrypted according to the UI/CLI
- see hashicorp/terraform-provider-google#5241 and #2763 (comment) for more info
  • Loading branch information
MartinNowak authored Dec 22, 2019
1 parent 9c8d732 commit 75262f5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ func resourceBigQueryTable() *schema.Resource {
"encryption_configuration": {
Type: schema.TypeList,
Optional: true,
ForceNew: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
Expand Down

0 comments on commit 75262f5

Please sign in to comment.