hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.82k stars 9.17k forks source link

[Enhancement]: Support encryption configuration for `states` resources #38560

Open jar-b opened 3 months ago

jar-b commented 3 months ago

Description

The AWS Go SDK recently added support for customizing encryption configurations with states resources. Specifically, state machine and activity resources now include an encrpytionConfigration field. The corresponding Terraform resources can be updated to support this new argument.

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource "aws_sfn_state_machine" "example" {
  ### other configuration ###

  encryption_configuration {
    type                              = "CUSTOMER_MANAGED_KMS_KEY"
    kms_key_id                        = aws_kms_key.example.id
    kms_data_key_reuse_period_seconds = 60
  }
}

resource "aws_sfn_activity" "example" {
  ### other configuration ###

  encryption_configuration {
    type                              = "CUSTOMER_MANAGED_KMS_KEY"
    kms_key_id                        = aws_kms_key.example.id
    kms_data_key_reuse_period_seconds = 60
  }
}

References

Would you like to implement a fix?

None

github-actions[bot] commented 3 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue