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

Feature Request: CosmosDB Collections #548

Closed
deepaksap opened this issue Nov 13, 2017 · 16 comments · Fixed by #3459
Closed

Feature Request: CosmosDB Collections #548

deepaksap opened this issue Nov 13, 2017 · 16 comments · Fixed by #3459
Assignees
Labels
hashibot/ignore microsoft/1 new-resource service/cosmosdb upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR
Milestone

Comments

@deepaksap
Copy link

Hi there,

Terraform Version

Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.

Terraform v0.10.8

Affected Resource(s)

Please list the resources as a list, for example:
Cosmos DB

Expected Behavior

What should have happened? --> terraform should be able to create mongo db collections under cosmos DB.

Actual Behavior

What actually happened? --> Terraform is only creating cosmos DB account.

@tombuildsstuff tombuildsstuff changed the title Azure Cosmos DB: Adding Collection to MongoDB missing Feature Request: CosmosDB Collections Nov 13, 2017
@tombuildsstuff
Copy link
Contributor

Hi @deepaksap

Thanks for opening this issue / feature request :)

I've taken a look into this but unfortunately at this point in time there's no support for creating CosmosDB Collections in the Azure SDK for Go. That said - a PR's been opened recently which should enable this and once the PR's been merged we should be able to take a look at supporting this in Terraform.

Thanks!

@rossedman
Copy link

@tombuildsstuff looks like this was merged. I would love to see this happen. I know for a long time this was separate from the ARM API.

@Preskton

This comment has been minimized.

@pussinboots
Copy link

I looked into this a PR's been opened recently which should enable this and this implements that you can
use the mgo mongo driver to create just a mongo collection.

The Azure SDK for go miss the possibility to create a CosmosDB collection with the following properties (that properties come from the azure cli tool)

  • default-ttl
  • indexing-policy
  • partition-key-path
  • throughput

The azure cli tool offers the possibility to create a cosmosDB collection

az cosmosdb collection create 

Any suggestions how to create CosmosDb collection with terraform?

  • use the azure cli tool and a bash script maybe

@idevchris
Copy link

Looks like the PR got merged meanwhile

@agnnn
Copy link

agnnn commented Feb 5, 2018

Any update on this feature ??

@holmesb
Copy link

holmesb commented Mar 15, 2018

Would be great to have CosmosDB collections managed by Terraform. The SDK support has been there for four months now, any ETA for this?

@tombuildsstuff
Copy link
Contributor

@holmesb we're hoping to get to this soon - watch this space :)

@ChristianWeyer

This comment has been minimized.

@srusru

This comment has been minimized.

@holmesb
Copy link

holmesb commented Oct 3, 2018

I see there's been some work on Cosmos at the account level. Having fully-featured accounts without any database\collection capability is incongruous IMO. Any timeline for this?

@tombuildsstuff tombuildsstuff modified the milestones: Future, Being Sorted, Blocked Oct 25, 2018
@tombuildsstuff tombuildsstuff added the upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR label Oct 25, 2018
@mikhailshilkov
Copy link
Contributor

So, Mongo Collections got added, but not the "normal" Cosmos DB collections? Is there an issue which tracks those? (based on the title of this issue, I assumed they were included, but it got closed now)

@dandiellie
Copy link

Is "azurerm_cosmos_sql_container" the new resource for SQL Collections?

@mikhailshilkov
Copy link
Contributor

Is "azurerm_cosmos_sql_container" the new resource for SQL Collections?

It could be but I don't see it anywhere. Where have you found it?

@jlagarda
Copy link

@dandiellie where you able to get an answer?

Also for anyone writing collections via terraform, is there
any modules like "azurerm_cosmosdb_mongo_collection" where I can configure RU's, ttl etc

Thank you in advance

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.