hashicorp / terraform-provider-awscc

Terraform AWS Cloud Control provider
https://registry.terraform.io/providers/hashicorp/awscc/latest/docs
Mozilla Public License 2.0
249 stars 113 forks source link

TypeNotFoundException: The type 'AWS::ElastiCache::ServerlessCache' cannot be found #1378

Open kenroyandfamily opened 9 months ago

kenroyandfamily commented 9 months ago

Community Note

Terraform CLI and Terraform AWS Cloud Control Provider Version

Affected Resource(s)

Terraform v1.6.6 on windows_386

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

provider "awscc" {
  region = "us-east-1"
}

resource "awscc_elasticache_serverless_cache" "ec-svrls" {
    engine     = "Redis"
    serverless_cache_name = "test"

}

Debug Output

Panic Output

Expected Behavior

I expect the ElastiCache to be created

Actual Behavior

Terraform errors with:

awscc_elasticache_serverless_cache.ec-svrls: Creating... β•· β”‚ Error: AWS SDK Go Service Operation Unsuccessful β”‚ β”‚ with awscc_elasticache_serverless_cache.ec-svrls, β”‚ on main.tf line 5, in resource "awscc_elasticache_serverless_cache" "ec-svrls": β”‚ 5: resource "awscc_elasticache_serverless_cache" "ec-svrls" { β”‚ β”‚ Calling Cloud Control API service CreateResource operation returned: operation error CloudControl: CreateResource, https response β”‚ error StatusCode: 400, RequestID: 6880d2ed-5ec3-4fa1-be40-4240b1c757df, TypeNotFoundException: The type β”‚ 'AWS::ElastiCache::ServerlessCache' cannot be found.

Steps to Reproduce

  1. terraform apply

Important Factoids

References

wellsiau-aws commented 6 months ago

Unable to replicate the problem, this could be a transient issue.


Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # awscc_elasticache_serverless_cache.ec-svrls will be created
  + resource "awscc_elasticache_serverless_cache" "ec-svrls" {
      + arn                      = (known after apply)
      + cache_usage_limits       = (known after apply)
      + create_time              = (known after apply)
      + daily_snapshot_time      = (known after apply)
      + description              = (known after apply)
      + endpoint                 = (known after apply)
      + engine                   = "Redis"
      + final_snapshot_name      = (known after apply)
      + full_engine_version      = (known after apply)
      + id                       = (known after apply)
      + kms_key_id               = (known after apply)
      + major_engine_version     = (known after apply)
      + reader_endpoint          = (known after apply)
      + security_group_ids       = (known after apply)
      + serverless_cache_name    = "test"
      + snapshot_arns_to_restore = (known after apply)
      + snapshot_retention_limit = (known after apply)
      + status                   = (known after apply)
      + subnet_ids               = (known after apply)
      + tags                     = (known after apply)
      + user_group_id            = (known after apply)
    }

Plan: 1 to add, 0 to change, 0 to destroy.
awscc_elasticache_serverless_cache.ec-svrls: Creating...
awscc_elasticache_serverless_cache.ec-svrls: Still creating... [10s elapsed]
awscc_elasticache_serverless_cache.ec-svrls: Still creating... [20s elapsed]
awscc_elasticache_serverless_cache.ec-svrls: Still creating... [30s elapsed]
awscc_elasticache_serverless_cache.ec-svrls: Still creating... [40s elapsed]
awscc_elasticache_serverless_cache.ec-svrls: Still creating... [50s elapsed]
awscc_elasticache_serverless_cache.ec-svrls: Still creating... [1m0s elapsed]
awscc_elasticache_serverless_cache.ec-svrls: Still creating... [1m10s elapsed]
awscc_elasticache_serverless_cache.ec-svrls: Still creating... [1m20s elapsed]
awscc_elasticache_serverless_cache.ec-svrls: Still creating... [1m30s elapsed]
awscc_elasticache_serverless_cache.ec-svrls: Still creating... [1m40s elapsed]
awscc_elasticache_serverless_cache.ec-svrls: Still creating... [1m50s elapsed]
awscc_elasticache_serverless_cache.ec-svrls: Still creating... [2m0s elapsed]
awscc_elasticache_serverless_cache.ec-svrls: Still creating... [2m10s elapsed]
awscc_elasticache_serverless_cache.ec-svrls: Still creating... [2m20s elapsed]
awscc_elasticache_serverless_cache.ec-svrls: Still creating... [2m31s elapsed]
awscc_elasticache_serverless_cache.ec-svrls: Still creating... [2m41s elapsed]
awscc_elasticache_serverless_cache.ec-svrls: Still creating... [2m51s elapsed]
awscc_elasticache_serverless_cache.ec-svrls: Creation complete after 2m54s [id=test]

@kenroyandfamily can you please try it again and let us know if issue persisted ?