Skip to content

Releases: hashicorp/terraform-provider-aws

v5.77.0

21 Nov 18:56
6ea8ba3
Compare
Choose a tag to compare

NOTES:

FEATURES:

  • New Ephemeral Resource: aws_kms_secrets (#40009)
  • New Ephemeral Resource: aws_lambda_invocation (#39988)
  • New Ephemeral Resource: aws_secretsmanager_secret_version (#40009)
  • New Resource: aws_rds_instance_state (#40180)

ENHANCEMENTS:

  • data-source/aws_ami: Add warning diagnostic when most_recent is true and certain filter criteria are missing (#40211)
  • data-source/aws_ecs_service: Add availability_zone_rebalancing attribute (#40225)
  • resource/aws_ecs_service: Add availability_zone_rebalancing attribute (#40225)
  • resource/aws_ecs_service: Add vpc_lattice_configurations argument (#40177)
  • resource/aws_ecs_task_definition: Add versionConsistency argument to container_definitions (#40216)
  • resource/aws_rds_global_cluster: Add endpoint argument to point to the writer DB instance in the current primary cluster (#39960)

BUG FIXES:

  • data-source/aws_subnet: Set tags from the DescribeSubnets response, removing the need for the ec2:DescribeTags IAM permission (#40144)
  • resource/aws_cognito_user_pool: Fix crash when hashing nil schema element (#40195)
  • resource/aws_eks_addon: Fix crash when pod_identity_association is modified (#40168)
  • resource/aws_eks_addon: Fix to prevent persistent differences when pod_identity_association is changed (#40168)

v5.76.0

14 Nov 17:35
Compare
Choose a tag to compare

FEATURES:

  • New Resource: aws_vpc_security_group_vpc_association (#40069)

ENHANCEMENTS:

  • resource/aws_medialive_channel: Add missing h265 codec settings (#40071)

BUG FIXES:

  • resource/aws_api_gateway_integration: Fix BadRequestException: Invalid mapping expression specified and NotFoundException: Invalid parameter name specified errors when making updates to request_parameters and/or cache_key_parameters (#40124)
  • resource/aws_api_gateway_method: Fix BadRequestException: Invalid mapping expression specified and NotFoundException: Invalid parameter name specified errors when making updates to request_parameters (#40124)
  • resource/aws_autoscaling_group: Handle eventual consistency issues that occur when using a launch_template that is updated causing ValidationError: You must use a valid fully-formed launch template. (#40088)
  • resource/aws_eip: Properly surface errors during deletion when ipam_pool_id is set (#40082)
  • resource/aws_elasticache_reserved_cache_node: Fix Provider returned invalid result object after apply errors (#40090)
  • resource/aws_iam_group_policies_exclusive: Add validation to prevent null values in policy_names (#40076)
  • resource/aws_iam_group_policy_attachments_exclusive: Add validation to prevent null values in policy_arns (#40076)
  • resource/aws_iam_instance_profile: Handle eventual consistency issues that occur when this resource is updated and has dependents (#40088)
  • resource/aws_iam_role_policies_exclusive: Add validation to prevent null values in policy_names (#40076)
  • resource/aws_iam_role_policy_attachments_exclusive: Add validation to prevent null values in policy_arns (#40076)
  • resource/aws_iam_user_policies_exclusive: Add validation to prevent null values in policy_names (#40076)
  • resource/aws_iam_user_policy_attachments_exclusive: Add validation to prevent null values in policy_arns (#40076)
  • resource/aws_launch_template: Handle eventual consistency issues that occur when this resource is updated and has dependents (#40088)

v5.75.1

11 Nov 16:23
7a8669e
Compare
Choose a tag to compare

ENHANCEMENTS:

  • data-source/aws_cloudwatch_event_bus: Add description attribute (#39980)
  • resource/aws_api_gateway_account: Add attribute reset_on_delete to properly reset CloudWatch Role ARN on deletion. (#40004)
  • resource/aws_cloudwatch_event_bus: Add description argument (#39980)

BUG FIXES:

  • resource/aws_api_gateway_deployment: Rolls back validation of canary_settings and stage_description when stage_name not set. (#40067)
  • resource/aws_dynamodb_table: Allow table TTL to be disabled by allowing ttl[0].attribute_name to be set when ttl[0].enabled is false (#40046)
  • resource/aws_sagemaker_domain: Fix issue causing a ValidationException on updates when RStudio is disabled on the domain (#40049)

v5.75.0

07 Nov 20:53
Compare
Choose a tag to compare

BREAKING CHANGES:

  • resource/aws_api_gateway_stage: Add canary_settings.deployment_id attribute as required (#39929)

NOTES:

  • provider: validation of arguments implementing the custom ARNType will properly surface validation errors (#40008)
  • resource/aws_api_gateway_stage: deployment_id was added to canary_settings as a required attribute. This breaking change was necessary to make canary_settings functional. Without this change all canary traffic was routed to the main deployment (#39929)

FEATURES:

  • New Data Source: aws_spot_datafeed_subscription (#39647)

ENHANCEMENTS:

  • data-source/aws_batch_job_definition: Add init_containers, share_process_namespace, and image_pull_secrets attributes (#40019)
  • resource/aws_batch_job_definition: Add init_containers and share_process_namespace arguments (#40019)
  • resource/aws_batch_job_definition: Increase maximum number of containers arguments to 10 (#40019)
  • resource/aws_eks_addon: Add pod_identity_association argument (#38357)
  • resource/aws_iam_user_login_profile: Mark the password argument as sensitive (#39991)

BUG FIXES:

  • resource/aws_api_gateway_deployment: Fix destroy error when canary stage still exists on resource (#39929)
  • resource/aws_codedeploy_deployment_group: Remove maximum items limit on the alarm_configuration.alarms argument (#39971)
  • resource/aws_eks_addon: Handle ResourceNotFound exceptions during resource destruction (#38357)
  • resource/aws_elasticache_reserved_cache_node: Fix Value Conversion Error during resource creation (#39945)
  • resource/aws_lb_listener: Fix errors when updating the tcp_idle_timeout_seconds argument for gateway load balancers (#40039)
  • resource/aws_lb_listener: Remove the default tcp_idle_timeout_seconds value, preventing ModifyListenerAttributes API calls when a value is not explicitly configured (#40039)
  • resource/aws_vpc_ipam_pool: Fix bug when public_ip_source = "amazon": The request can only contain PubliclyAdvertisable if the AddressFamily is IPv6 and PublicIpSource is byoip. (#40042)

v5.74.0

31 Oct 18:16
Compare
Choose a tag to compare

FEATURES:

  • New Data Source: aws_lb_listener_rule (#39865)
  • New Resource: aws_opensearch_authorize_vpc_endpoint_access (#39846)
  • New Resource: aws_ssmquicksetup_configuration_manager (#39931)

ENHANCEMENTS:

  • data-source/aws_imagebuilder_distribution_configuration: Add distribution.s3_export_configuration attribute (#35492)
  • data-source/aws_imagebuilder_image_recipe: Fix block_device_mapping.0.ebs.0.delete_on_termination: '' expected type 'bool', got unconvertible type 'string' errors (#39928)
  • resource/aws_codedeploy_deployment_group: Add termination_hook_enabled argument (#35482)
  • resource/aws_eks_cluster: Add zonal_shift_config argument (#39852)
  • resource/aws_imagebuilder_distribution_configuration: Add distribution.s3_export_configuration argument (#35492)
  • resource/aws_imagebuilder_image_pipeline: Allow container_recipe_arn and image_recipe_arn to be updated in-place (#39117)
  • resource/aws_keyspaces_keyspace: Add replication_specification argument (#36331)
  • resource/aws_launch_template: Add efa-only as a valid value for network_interfaces.interface_type (#39882)
  • resource/aws_transfer_server: Add TransferSecurityPolicy-Restricted-2024-06 as a valid value for security_policy_name (#39871)

BUG FIXES:

  • resource/aws_docdb_cluster: Use master_password on resource Create when snapshot_identifier is configured (#38193)
  • resource/aws_imagebuilder_container_recipe: Change component.parameter.name, component.parameter.value, target_repository.repository_name, and target_repository.service to ForceNew (#39117)
  • resource/aws_route53_record: Fix interface conversion: interface {} is nil, not map[string]interface {} panic when geolocation_routing_policy is empty (#39944)
  • resource/aws_ssm_patch_baseline: Update approval_rule.approve_after_days validation to allow a maximum value of 360 (#39949)
  • resource/aws_wafv2_web_acl: Fix decoding JSON: unexpected end of JSON input errors when updating from using rule_json to using rule (#39283)
  • resource/aws_wafv2_web_acl: Fix unmarshal error for incompatible types in rule_json (#39878)

v5.73.0

24 Oct 15:26
Compare
Choose a tag to compare

FEATURES:

  • New Data Source: aws_ssm_patch_baselines (#39779)
  • New Resource: aws_imagebuilder_lifecycle_policy (#35674)
  • New Resource: aws_resiliencehub_resiliency_policy (#38913)
  • New Resource: aws_sagemaker_hub (#39807)
  • New Resource: aws_sagemaker_mlflow_tracking_server (#39796)

ENHANCEMENTS:

  • data-source/aws_elasticache_reserved_cache_node_offering: Support valkey as valid value for product_description (#39745)
  • data-source/aws_lakeformation_data_lake_settings: Add parameters map attribute to read CROSS_ACCOUNT_VERSION (#39826)
  • data-source/aws_lb: Add enable_zonal_shift attribute (#39585)
  • resource/aws_apprunner_auto_scaling_configuration_version: Remove the upper limit on min_size and max_size (#39843)
  • resource/aws_batch_job_definition: Ensure that new revisions are created with tags (#39797)
  • resource/aws_codedeploy_deployment_config: Add zonal_config argument (#34850)
  • resource/aws_dynamodb_kinesis_streaming_destination: Add approximate_creation_date_time_precision argument (#38098)
  • resource/aws_elasticache_cluster: Support valkey as valid value for engine (#39745)
  • resource/aws_elasticache_global_replication_group: Support Valkey versions for engine_version (#39745)
  • resource/aws_elasticache_replication_group: Support Valkey versions for engine_version (#39745)
  • resource/aws_elasticache_replication_group: Support valkey as valid value for engine (#39745)
  • resource/aws_elasticache_serverless_cache: Support valkey as valid value for engine (#39745)
  • resource/aws_kinesis_firehose_delivery_stream: Add iceberg_configuration argument (#39844)
  • resource/aws_lakeformation_data_lake_settings: Add parameters map argument enabling CROSS_ACCOUNT_VERSION to be set (#39826)
  • resource/aws_lb: Add enable_zonal_shift argument (#39585)
  • resource/aws_lb_listener: Add tcp_idle_timeout_seconds argument (#39585)
  • resource/aws_route53profiles_association: Add regex and string length validation for name argument (#39798)
  • resource/aws_s3_bucket_object: Remove the call to kms:DescribeKey for the S3 default AWS managed key (alias/aws/s3) on Read (#39782)
  • resource/aws_s3_object: Remove the call to kms:DescribeKey for the S3 default AWS managed key (alias/aws/s3) on Read (#39782)
  • resource/aws_s3_object_copy: Remove the call to kms:DescribeKey for the S3 default AWS managed key (alias/aws/s3) on Read (#39782)
  • resource/aws_sagemaker_domain: Add default_user_settings.jupyter_lab_app_settings.app_lifecycle_management, default_user_settings.jupyter_lab_app_settings.built_in_lifecycle_config_arn, default_user_settings.jupyter_lab_app_settings.emr_settings, default_space_settings.jupyter_lab_app_settings.app_lifecycle_management, default_space_settings.jupyter_lab_app_settings.built_in_lifecycle_config_arn, default_space_settings.jupyter_lab_app_settings.emr_settings, default_user_settings.auto_mount_home_efs, default_user_settings.canvas_app_settings.emr_serverless_settings, default_user_settings.studio_web_portal_settings.hidden_instance_types, default_user_settings.code_editor_app_settings.app_lifecycle_management, default_user_settings.code_editor_app_settings.built_in_lifecycle_config_arn, and tag_propagation arguments (#39774)
  • resource/aws_sagemaker_domain: Allow app_network_access_type and app_security_group_management to be updated in-place (#39774)
  • resource/aws_sagemaker_feature_group: Add feature_definition.collection_config, feature_definition.collection_type, and throughput_config arguments (#39805)
  • resource/aws_sagemaker_space: Add space_settings.code_editor_app_settings.app_lifecycle_management and space_settings.jupyter_lab_app_settings.app_lifecycle_management arguments (#39800)
  • resource/aws_sagemaker_user_profile: Add user_settings.auto_mount_home_efs, user_settings.canvas_app_settings.emr_serverless_settings, user_settings.code_editor_app_settings.app_lifecycle_management, user_settings.code_editor_app_settings.built_in_lifecycle_config_arn, user_settings.jupyter_lab_app_settings.app_lifecycle_management, user_settings.jupyter_lab_app_settings.built_in_lifecycle_config_arn, user_settings.jupyter_lab_app_settings.emr_settings and user_settings.studio_web_portal_settings.hidden_instance_types arguments (#39774)

BUG FIXES:

  • data-source/aws_workspaces_bundle: Return the first matching bundle when searching by name. This fixes a regression introduced in v5.72.0 causing multiple WorkSpaces Bundles matched; use additional constraints to reduce matches to a single WorkSpaces Bundle errors (#39777)
  • resource/aws_dynamodb_table: Fix validation error when optional attribute in on_demand_throughput is excluded (#39784)
  • resource/aws_ecr_repository_policy: Fix persistent validation errors when malformed policy content is written to state (#39842)
  • resource/aws_elasticache_serverless_cache: Fix InvalidParameterValue: This API supports only cross-engine upgrades to Valkey engine currently errors on Update (#39745)
  • resource/aws_iam_policy: Fix persistent validation errors when malformed policy content is written to state (#39842)
  • resource/aws_iam_role_policy: Fix persistent validation errors when malformed policy content is written to state (#39842)
  • resource/aws_kms_key: Fix persistent validation errors when malformed policy content is written to state (#39842)
  • resource/aws_quicksight_data_set: Fix InvalidParameterValueException: Invalid RowLevelPermissionDataSet. Namespace parameter should not be specified for Version 2 errors on Create and Update (#39778)
  • resource/aws_route53_record: Allow creation of records with ttl=0 (#39728)
  • resource/aws_s3_bucket_policy: Fix persistent validation errors when malformed policy content is written to state (#39842)
  • resource/aws_secretsmanager_secret: Fix persistent validation errors when malformed policy content is written to state (#39842)
  • resource/aws_security_group_rule: Remove from state when rule not found. This fixes a regression introduced in v5.60.0 (#39834)

v5.72.1

16 Oct 19:41
c53a0b0
Compare
Choose a tag to compare

FEATURES:

  • New Resource: aws_iam_group_policy_attachments_exclusive (#39732)
  • New Resource: aws_iam_user_policy_attachments_exclusive (#39731)

ENHANCEMENTS:

  • resource/aws_resourceexplorer2_view: Add scope argument (#39744)

BUG FIXES:

  • data-source/aws_batch_job_definition: Properly handles ignored tags. (#39734)
  • data-source/aws_cognito_user_pool: Properly handles ignored tags. (#39734)
  • resource/aws_cognito_user_pool: Properly handles ignored tags. (#39734)
  • resource/aws_dynamodb_table: Fix crash when billing_mode is set to PAY_PER_REQUEST without global_secondary_index updates (#39752)
  • resource/aws_dynamodb_table_replica: Properly handles default and ignored tags. (#39734)
  • resource/aws_resourceexplorer2_index: Correctly mark incomplete AGGREGATOR indexes as tainted on Create (#39744)

v5.72.0

15 Oct 20:23
ca7bd21
Compare
Choose a tag to compare

NOTES:

  • This version contains all the features, enhancements, and bug fixes from the v5.71.0 release which was removed from the Terraform Registry (#39692)
  • resource/aws_iam_role: The managed_policy_arns argument is deprecated. Use the aws_iam_role_policy_attachments_exclusive resource instead. (#39718)

FEATURES:

  • New Resource: aws_iam_role_policy_attachments_exclusive (#39718)

ENHANCEMENTS:

  • data-source/aws_workspaces_directory: Add saml_properties attribute (#39060)
  • resource/aws_appflow_flow: Add source_flow_config.source_connector_properties.sapo_data.pagination_config and source_flow_config.source_connector_properties.sapo_data.parallelism_config attributes (#38932)
  • resource/aws_cloudwatch_event_rule: Add tags to AWS API request on Update to support ABAC aws:RequestTag conditions (#39648)
  • resource/aws_cloudwatch_event_target: Add appsync_target configuration block (#37773)
  • resource/aws_dynamodb_table: Add on_demand_throughput and global_secondary_index.on_demand_throughput arguments (#37799)
  • resource/aws_rds_cluster: Increase maximum value of serverlessv2_scaling_configuration.max_capacity and serverlessv2_scaling_configuration.min_capacity from 128 to 256 (#39697)
  • resource/aws_rds_cluster_instance: Treat storage-optimization status as success when creating or updating cluster DB instances (#39691)
  • resource/aws_workspaces_directory: Add saml_properties configuration block (#39060)

BUG FIXES:

  • data-source/aws_ssm_document: Correct arn for automation documents (#39705)
  • resource/aws_cognito_user_pool: Fixes error when schema has empty string_attribute_constraints or number_attribute_constraints (#20386)
  • resource/aws_ssm_document: Correct arn for automation documents (#39705)

v5.71.0DONOTUSE

11 Oct 00:51
Compare
Choose a tag to compare

This Terraform AWS Provider version has been removed from the Terraform Registry due to archive has incorrect checksum errors while installing the provider on some platforms.

The next planned Terraform AWS Provider release is v5.72.0, scheduled for the morning (EST) of October 17, 2024.

FEATURES:

  • New Data Source: aws_bedrock_inference_profile (#39342)
  • New Data Source: aws_bedrock_inference_profiles (#39342)
  • New Data Source: aws_elasticache_serverless_cache (#39590)
  • New Data Source: aws_prometheus_default_scraper_configuration (#35280)
  • New Data Source: aws_route53profiles_profiles (#38172)
  • New Resource: aws_backup_restore_testing_plan (#37039)
  • New Resource: aws_backup_restore_testing_selection (#37039)
  • New Resource: aws_datazone_user_profile (#38810)
  • New Resource: aws_pinpointsmsvoicev2_configuration_set (#39620)
  • New Resource: aws_route53profiles_association (#38172)
  • New Resource: aws_route53profiles_profile (#38172)
  • New Resource: aws_route53profiles_resource_association (#38172)

ENHANCEMENTS:

  • data-source/aws_backup_plan: Add rule.schedule_expression_timezone attribute (#33653)
  • data-source/aws_eip: Add ipam_pool_id attribute (#39604)
  • data-source/aws_vpc_endpoint_service: Add private_dns_names attribute (#39659)
  • resource/aws_backup_plan: Add rule.schedule_expression_timezone argument (#33653)
  • resource/aws_batch_compute_environment: Add plan-time validation of update_policy.job_execution_timeout_minutes (#39583)
  • resource/aws_batch_job_definition: Suppress unnecessary differences in container_properties.environment (#21834)
  • resource/aws_eip: Add ipam_pool_id argument in support of public IPAM pools (#39604)
  • resource/aws_route53_resolver_endpoint: Add resolver_endpoint_type argument
    resource/aws_route53_resolver_rule: Add ipv6 optional argument to the target_ip object (#30167)
  • resource/aws_vpc_ipam: Add enable_private_gua argument (#39600)
  • resource/aws_vpc_ipv6_cidr_block_association: Add ip_source and ipv6_address_attribute attributes (#39600)

BUG FIXES:

  • resource/aws_backup_vault: Fix empty result errors reading vaults in certain Regions (#39670)
  • resource/aws_elasticache_replication_group: Fix security_group_names causing resource replacement after import (#39591)
  • resource/aws_instance: Fixed issues with volume_tags, root_block_device.*.tags, and ebs_block_device.*.tags where tags overlapped with default tags. These are now handled consistently with top-level tags throughout the provider. Specifically, tags defined in both locations are no longer removed, preventing erroneous differences. (#37441)
  • resource/aws_sagemaker_workteam: Mark workforce_name as Optional (#39630)
  • resource/aws_securityhub_automation_rule: Increase criteria.aws_account_id, criteria.generator_id, criteria.resource_id, and criteria.title max length from 20 to 100 (#39616)
  • resource/aws_vpc_ipam_pool: Change publicly_advertisable to ForceNew (#39600)
  • resource/aws_vpc_ipam_pool: Fix InvalidParameterCombination: The request can only contain PubliclyAdvertisable if the AddressFamily is IPv6 and PublicIpSource is byoip errors (#39600)

v5.70.0

04 Oct 00:49
575959b
Compare
Choose a tag to compare

NOTES:

  • resource/aws_s3_bucket_lifecycle_configuration: Amazon S3 now applies a default minimum object size of 128 KB for S3 Lifecycle transition rules to any S3 storage class. This new default behavior will be applied to any new or modified S3 Lifecycle configuration. You can override this new default and customize the minimum object size for S3 Lifecycle transition rules to any value (#39578)
  • resource/aws_simpledb_domain: The aws_simpledb_domain resource has been deprecated and will be removed in a future version. Use Amazon DynamoDB instead (#39536)
  • resource/aws_worklink_fleet: The aws_worklink_fleet resource has been deprecated and will be removed in a future version. Use Amazon WorkSpaces Secure Browser instead (#39538)
  • resource/aws_worklink_website_certificate_authority_association: The aws_worklink_website_certificate_authority_association resource has been deprecated and will be removed in a future version. Use Amazon WorkSpaces Secure Browser instead (#39538)

FEATURES:

  • New Resource: aws_backup_logically_air_gapped_vault (#39098)
  • New Resource: aws_ec2_transit_gateway_default_route_table_association (#39496)
  • New Resource: aws_ec2_transit_gateway_default_route_table_propagation (#39517)
  • New Resource: aws_iam_group_policies_exclusive (#39554)
  • New Resource: aws_iam_user_policies_exclusive (#39544)
  • New Resource: aws_securityhub_standards_control_association (#39511)

ENHANCEMENTS:

  • data-source/aws_ebs_snapshot: Add start_time attribute (#39557)
  • resource/aws_bedrockagent_agent_action_group: Add prepare_agent argument (#39486)
  • resource/aws_bedrockagent_data_source: Add vector_ingestion_configuration.custom_transformation_configuration argument (#39556)
  • resource/aws_globalaccelerator_endpoint_group: Add endpoint_configuration.attachment_arn argument (#39507)
  • resource/aws_lambda_code_signing_config: Add tags argument and tags_all attribute (#39535)
  • resource/aws_lambda_event_source_mapping: Add arn attribute (#39535)
  • resource/aws_lambda_event_source_mapping: Add tags argument and tags_all attribute (#39535)
  • resource/aws_s3_bucket_lifecycle_configuration: Add transition_default_minimum_object_size argument (#39578)

BUG FIXES:

  • resource/aws_bedrockagent_agent: Fix "Provider produced inconsistent result after apply" error on update due to customer_encryption_key_arn not being passed during update (#39565)
  • resource/aws_bedrockagent_agent: Fix "Provider produced inconsistent result after apply" error on update due to prompt_override_configuration not being passed when not modified (#39565)
  • resource/aws_bedrockagent_knowledge_base: Change knowledge_base_configuration and storage_configuration to ForceNew (#39567)
  • resource/aws_ec2_transit_gateway_vpc_attachment: Remove default value for security_group_referencing_support argument and mark as Computed. This suppresses the diffs shown for resources created with v5.68.0 (or earlier) (#39519)
  • resource/aws_opensearchserverless_lifecycle_policy: Fix "Provider produced inconsistent result after apply" error on update due to policy_version computed attribute changing (#39528)
  • resource/aws_opensearchserverless_security_policy: Fix "Provider produced inconsistent result after apply" error on update due to policy_version computed attribute changing (#39528)
  • resource/aws_quicksight_dashboard: Fix mapping of sheets.filter_controls.list.cascading_control_configuration and sheets.parameter_controls.list.cascading_control_configuration attributes (#39453)