You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
terraform {
required_version=">= 0.10.7"backend"s3" {}
}
provider"aws" {
region="${var.region}"
}
resource"aws_api_gateway_api_key""api_key" {
name="${var.key_name}"description="${var.key_description}"enabled=true
}
resource"aws_api_gateway_usage_plan""usage_plan" {
name="${var.key_name}"description="Usage plan specific to the ${var.key_name} API key"quota_settings {
limit="${var.quota_limit}"period="${var.quota_period}"
}
throttle_settings {
burst_limit="${var.burst_limit}"rate_limit="${var.steady_state_limit}"
}
api_stages {
api_id="${var.api_gateway_id}"stage="${var.deployment_stage_name}"
}
}
resource"aws_api_gateway_usage_plan_key""usage_plan_key" {
key_id="${aws_api_gateway_api_key.api_key.id}"key_type="API_KEY"usage_plan_id="${aws_api_gateway_usage_plan.usage_plan.id}"
}
Debug Output
Due to the nature of the reproduction scenario, I've lost my debug file but could try and create it if it is deemed important.
Crash Output
None.
Expected Behavior
The first apply of the module should set the rate_limit attribute to the specified value.
Actual Behavior
The rate_limit attribute is set to 0.
Steps to Reproduce
terraform init
terraform plan
terraform apply
terraform plan
terraform apply
You should notice that the second apply correctly sets the desired value. You have to apply twice in order for the value to take. The other attributes appear to be correctly on the first apply.
Important Factoids
Running on Ubuntu 16.04
References
None found.
The text was updated successfully, but these errors were encountered:
Terraform Version
Terraform v0.10.7
Terraform Configuration Files
Debug Output
Due to the nature of the reproduction scenario, I've lost my debug file but could try and create it if it is deemed important.
Crash Output
None.
Expected Behavior
The first
apply
of the module should set therate_limit
attribute to the specified value.Actual Behavior
The
rate_limit
attribute is set to 0.Steps to Reproduce
terraform init
terraform plan
terraform apply
terraform plan
terraform apply
You should notice that the second
apply
correctly sets the desired value. You have to apply twice in order for the value to take. The other attributes appear to be correctly on the firstapply
.Important Factoids
Running on Ubuntu 16.04
References
None found.
The text was updated successfully, but these errors were encountered: