Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws_dynamodb_table resource reading tags from dynamodb-local throws UnknownOperationException #11926

Closed
cstavro opened this issue Feb 14, 2017 · 4 comments

Comments

@cstavro
Copy link

cstavro commented Feb 14, 2017

Terraform Version

0.8.6

Affected Resource(s)

  • aws_dynamodb_table

Terraform Configuration Files

provider "aws" {
  region = "us-east-1"
  dynamodb_endpoint = "http://localhost:8000"
}

resource "aws_dynamodb_table" "mytable" {
  name = "mytable"
  read_capacity = 1
  write_capacity = 1
  hash_key = "id"

  attribute {
    name = "id"
    type = "S"
  }
}

Debug Output

https://gist.github.com/cstavro/5e23b233ebfc29ffa48e5ead52d27c34

Expected Behavior

  • Should be able to plan and apply a config
  • Should be able to plan after an apply

Actual Behavior

Steps to Reproduce

  1. terraform apply

Important Factoids

  • This works fine in v0.8.5
  • Running latest version of dynamodb-local for development

References

Pretty sure this is the guy that causes the problem

@CPWeaver
Copy link

CPWeaver commented Apr 4, 2017

@cstavro I'm running into this exact issue and wondering if you found any workaround? As you showed the apply errors out even when tags are excluded from the resource definition.

@cstavro
Copy link
Author

cstavro commented Apr 5, 2017

@CPWeaver
I don't think there is a workaround. It's an incompatibility between the local and hosted versions of DynamoDB. The local version flat out doesn't support tags and returns an error that TF is interpreting as a hard failure.

I don't think the fix is going to be huge but I've had trouble getting TF to compile on my Windows box so I haven't gotten around to attempting to fix it myself yet.

My solution so far has been to stick with TF v0.8.5 for this project. It's either that or manage dynamodb differently between my dev and production environments which I don't really want to do.

@CPWeaver
Copy link

CPWeaver commented Apr 5, 2017

@cstavro Thanks, that's what I suspected. I'd like to stay on a newer version of TF so I'll probably just provision dev instances separately and hope Amazon releases an updated local Dynamo that supports tagging.

@ghost
Copy link

ghost commented Apr 10, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants