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

Terraform seems not to support multiple attributes in a DynamoDB key schema #12229

Closed
jgryszko opened this issue Feb 24, 2017 · 2 comments
Closed

Comments

@jgryszko
Copy link

Hi,

It looks like multiple attributes are not supported for dynamodb key schema so far.

Looking at the source, only hash_key is included in the key schema.

resource_aws_dynamodb_table.go:
hash_key_name := d.Get("hash_key").(string) keyschema := []*dynamodb.KeySchemaElement{ { AttributeName: aws.String(hash_key_name), KeyType: aws.String("HASH"), }, }
Are there plans to change this in near future?
Best,
Janusz

@ashb
Copy link
Contributor

ashb commented Jun 1, 2017

I would like to be able to create a dynamodb table for use with credstash and it wants this KeySchema:

            {
                "AttributeName": "name",
                "KeyType": "HASH",
            },
            {
                "AttributeName": "version",
                "KeyType": "RANGE",
            }

@ghost
Copy link

ghost commented Apr 9, 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 9, 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