terraform-provider-awscc
terraform-provider-awscc copied to clipboard
unknown value for properties : awscc_applicationautoscaling_scaling_policy
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
- The resources and data sources in this provider are generated from the CloudFormation schema, so they can only support the actions that the underlying schema supports. For this reason submitted bugs should be limited to defects in the generation and runtime code of the provider. Customizing behavior of the resource, or noting a gap in behavior are not valid bugs and should be submitted as enhancements to AWS via the CloudFormation Open Coverage Roadmap.
Terraform CLI and Terraform AWS Cloud Control Provider Version
terraform --version
Terraform v1.7.4
terraform {
required_providers {
awscc = {
source = "hashicorp/awscc"
version = "0.74.0"
}
}
}
Affected Resource(s)
- awscc_applicationautoscaling_scaling_policy
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
resource "awscc_applicationautoscaling_scalable_target" "dynamodb_table_read_target" {
max_capacity = 100
min_capacity = 5
resource_id = "table/${aws_dynamodb_table.basic-dynamodb-table.id}"
scalable_dimension = "dynamodb:table:ReadCapacityUnits"
service_namespace = "dynamodb"
}
resource "awscc_applicationautoscaling_scaling_policy" "dynamodb_table_read_policy" {
policy_name = "DynamoDBReadCapacityUtilization:${awscc_applicationautoscaling_scalable_target.dynamodb_table_read_target.resource_id}"
policy_type = "TargetTrackingScaling"
resource_id = awscc_applicationautoscaling_scalable_target.dynamodb_table_read_target.resource_id
scalable_dimension = awscc_applicationautoscaling_scalable_target.dynamodb_table_read_target.scalable_dimension
service_namespace = awscc_applicationautoscaling_scalable_target.dynamodb_table_read_target.service_namespace
scaling_target_id=awscc_applicationautoscaling_scalable_target.dynamodb_table_read_target.scalable_target_id
target_tracking_scaling_policy_configuration ={
predefined_metric_specification ={
predefined_metric_type = "DynamoDBReadCapacityUtilization"
}
target_value = 70
}
}
resource "aws_dynamodb_table" "basic-dynamodb-table" {
name = "tableName"
billing_mode = "PROVISIONED"
read_capacity = 20
write_capacity = 20
hash_key = "UserId"
attribute {
name = "UserId"
type = "S"
}
tags = {
Name = "tableName"
}
}
Debug Output
Panic Output
Expected Behavior
Actual Behavior
aws_dynamodb_table.basic-dynamodb-table: Creating...
aws_dynamodb_table.basic-dynamodb-table: Creation complete after 7s [id=tableName]
awscc_applicationautoscaling_scalable_target.dynamodb_table_read_target: Creating...
awscc_applicationautoscaling_scalable_target.dynamodb_table_read_target: Creation complete after 6s [id=table/tableName|dynamodb:table:ReadCapacityUnits|dynamodb]
awscc_applicationautoscaling_scaling_policy.dynamodb_table_read_policy: Creating...
╷
│ Error: Provider returned invalid result object after apply
│
│ After the apply operation, the provider still indicated an unknown value for
│ awscc_applicationautoscaling_scaling_policy.dynamodb_table_read_policy.arn. All values must be known after
│ apply, so this is always a bug in the provider and should be reported in the provider's own repository.
│ Terraform will still save the other known object values in the state.
╵
╷
│ Error: Provider returned invalid result object after apply
│
│ After the apply operation, the provider still indicated an unknown value for
│ awscc_applicationautoscaling_scaling_policy.dynamodb_table_read_policy.step_scaling_policy_configuration. All
│ values must be known after apply, so this is always a bug in the provider and should be reported in the
│ provider's own repository. Terraform will still save the other known object values in the state.
╵
╷
│ Error: Provider returned invalid result object after apply
│
│ After the apply operation, the provider still indicated an unknown value for
│ awscc_applicationautoscaling_scaling_policy.dynamodb_table_read_policy.target_tracking_scaling_policy_configuration.customized_metric_specification.
│ All values must be known after apply, so this is always a bug in the provider and should be reported in the
│ provider's own repository. Terraform will still save the other known object values in the state.
╵
╷
│ Error: Provider returned invalid result object after apply
│
│ After the apply operation, the provider still indicated an unknown value for
│ awscc_applicationautoscaling_scaling_policy.dynamodb_table_read_policy.target_tracking_scaling_policy_configuration.disable_scale_in.
│ All values must be known after apply, so this is always a bug in the provider and should be reported in the
│ provider's own repository. Terraform will still save the other known object values in the state.
╵
╷
│ Error: Provider returned invalid result object after apply
│
│ After the apply operation, the provider still indicated an unknown value for
│ awscc_applicationautoscaling_scaling_policy.dynamodb_table_read_policy.target_tracking_scaling_policy_configuration.predefined_metric_specification.resource_label.
│ All values must be known after apply, so this is always a bug in the provider and should be reported in the
│ provider's own repository. Terraform will still save the other known object values in the state.
╵
╷
│ Error: Provider returned invalid result object after apply
│
│ After the apply operation, the provider still indicated an unknown value for
│ awscc_applicationautoscaling_scaling_policy.dynamodb_table_read_policy.target_tracking_scaling_policy_configuration.scale_in_cooldown.
│ All values must be known after apply, so this is always a bug in the provider and should be reported in the
│ provider's own repository. Terraform will still save the other known object values in the state.
╵
╷
│ Error: Provider returned invalid result object after apply
│
│ After the apply operation, the provider still indicated an unknown value for
│ awscc_applicationautoscaling_scaling_policy.dynamodb_table_read_policy.target_tracking_scaling_policy_configuration.scale_out_cooldown.
│ All values must be known after apply, so this is always a bug in the provider and should be reported in the
│ provider's own repository. Terraform will still save the other known object values in the state.
╵
╷
│ Error: AWS Resource Not Found After Creation or Update
│
│ with awscc_applicationautoscaling_scaling_policy.dynamodb_table_read_policy,
│ on main.tf line 9, in resource "awscc_applicationautoscaling_scaling_policy" "dynamodb_table_read_policy":
│ 9: resource "awscc_applicationautoscaling_scaling_policy" "dynamodb_table_read_policy" {
│
│ After creating or updating the AWS resource and attempting to read the resource, the API returned a resource not
│ found error. This is typically an error with the Terraform resource implementation. Original Error: couldn't
│ find resource
Steps to Reproduce
-
terraform apply
Important Factoids
References
- #0000