hashicorp / terraform-provider-bitbucket

This Terraform provider is archived per our provider archiving process: https://terraform.io/docs/internals/archiving.html
https://registry.terraform.io
Mozilla Public License 2.0
32 stars 105 forks source link

CamelCase named Repositories cant be created #4

Closed sd-lueckel closed 7 years ago

sd-lueckel commented 7 years ago

A CamelCase named Repository can not be created because the name is used as slug and in slug CamelCase is not allowed. Also there is no possibility to provide a seperate slug.

Terraform Version

Terraform v0.10.0

Affected Resource(s)

Terraform Configuration Files

# Configure the Bitbucket Provider
provider "bitbucket" {
  username = "username"
  password = "password" # you can also use app passwords
}

resource "bitbucket_repository" "somerepository" {
  owner      = "team"
  name       = "SomeRepository"
  scm        = "git"
  is_private = true
}

Expected Behavior

Repository created with a CamelCase name and a valid slug

Actual Behavior

It generates an api error 'Invalid slug. Slugs must be lowercase, alphanumerical, and may also contain underscores, dashes, or dots.'

Steps to Reproduce

  1. terraform apply