Skip to content

Commit

Permalink
add note in kms_key_id schema attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
anGie44 committed May 8, 2021
1 parent 13f913d commit eb443d6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions aws/resource_aws_timestreamwrite_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ func resourceAwsTimestreamWriteDatabase() *schema.Resource {
},

"kms_key_id": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Type: schema.TypeString,
Optional: true,
Computed: true,
// The Timestream API accepts the KmsKeyId as an ID, ARN, alias, or alias ARN but always returns the ARN of the key.
// The ARN is of the format 'arn:aws:kms:REGION:ACCOUNT_ID:key/KMS_KEY_ID'. Appropriate diff suppression
// would require an extra API call to the kms service's DescribeKey method to decipher aliases.
// To avoid importing an extra service in this resource, input here is restricted to only ARNs.
ValidateFunc: validateArn,
},

Expand Down

0 comments on commit eb443d6

Please sign in to comment.